[Network] az network lb address-pool: support create lb backend pool with backend address.#13700
Merged
mmyyrroonn merged 13 commits intoAzure:devfrom Jun 16, 2020
Merged
Conversation
Collaborator
|
add to S170 |
Collaborator
|
add to S171 |
b01de9a to
14f1bc6
Compare
haroldrandom
reviewed
Jun 4, 2020
| del namespace.connection_id | ||
|
|
||
|
|
||
| def process_vnet_name_or_id(cmd, namespace): |
Contributor
There was a problem hiding this comment.
duplicated work?
azure-cli/src/azure-cli/azure/cli/command_modules/network/_validators.py
Lines 86 to 111 in e3b8744
Contributor
Author
There was a problem hiding this comment.
I cannot use it since it's a list and SubResource. ids.append(SubResource(id=val))
haroldrandom
reviewed
Jun 4, 2020
haroldrandom
reviewed
Jun 4, 2020
haroldrandom
approved these changes
Jun 4, 2020
jsntcy
reviewed
Jun 9, 2020
jsntcy
reviewed
Jun 9, 2020
jsntcy
reviewed
Jun 9, 2020
| ip_address=addr['ip_address']) for addr in addresses_pool] if addresses_pool else None | ||
| new_pool = BackendAddressPool(name=backend_address_pool_name, | ||
| load_balancer_backend_addresses=new_addresses) | ||
| return ncf.load_balancer_backend_address_pools.create_or_update(resource_group_name, |
Contributor
Author
There was a problem hiding this comment.
I prefer keeping it as a sync command since we already supported it for a long time and the speed is quick enough. #Closed
jsntcy
reviewed
Jun 9, 2020
jsntcy
reviewed
Jun 9, 2020
jsntcy
reviewed
Jun 9, 2020
jsntcy
reviewed
Jun 9, 2020
| address_pool = client.get(resource_group_name, load_balancer_name, backend_address_pool_name) | ||
| lb_addresses = [addr for addr in address_pool.load_balancer_backend_addresses if addr.name != address_name] | ||
| address_pool.load_balancer_backend_addresses = lb_addresses | ||
| return client.create_or_update(resource_group_name, load_balancer_name, backend_address_pool_name, address_pool) |
Contributor
Author
There was a problem hiding this comment.
I prefer keeping it as a sync command. #Closed
jsntcy
reviewed
Jun 9, 2020
jsntcy
reviewed
Jun 9, 2020
jsntcy
reviewed
Jun 9, 2020
| raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) | ||
| d = {} | ||
| for k in properties: | ||
| kl = k.lower() |
Member
There was a problem hiding this comment.
Discussion: can we share generic logic for key-value arguments (keep naming the same as SDK parameters)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
fix #12937
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.