Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/azure-cli/azure/cli/command_modules/network/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -3691,6 +3691,14 @@
text: az network lb list -g MyResourceGroup
"""

helps['network lb list-nic'] = """
type: command
short-summary: List associated load balancer network interfaces.
examples:
- name: List associated load balancer network interfaces.
text: az network lb list-nic -g MyResourceGroup --name MyLb
"""

helps['network lb outbound-rule'] = """
type: group
short-summary: Manage outbound rules of a load balancer.
Expand Down Expand Up @@ -5984,6 +5992,11 @@
short-summary: Delete a route server under a resource group.
"""

helps['network routeserver wait'] = """
type: command
short-summary: Place the CLI in a waiting state until a condition of the route server is met.
"""

helps['network routeserver peering'] = """
type: group
short-summary: Manage the route server peering.
Expand Down Expand Up @@ -6024,6 +6037,11 @@
short-summary: List all routes the route server bgp connection is advertising to the specified peer.
"""

helps['network routeserver peering wait'] = """
type: command
short-summary: Place the CLI in a waiting state until a condition of the route server peering is met.
"""

helps['network watcher'] = """
type: group
short-summary: Manage the Azure Network Watcher.
Expand Down
3 changes: 3 additions & 0 deletions src/azure-cli/azure/cli/command_modules/network/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ def _make_singular(value):
g.wait_command('wait')
g.generic_update_command('update', getter_name='lb_get', getter_type=network_load_balancers_custom,
setter_name='begin_create_or_update')
g.custom_command('list-nic', 'list_load_balancer_nic', min_api='2017-06-01')

property_map = {
'frontend_ip_configurations': 'frontend-ip',
Expand Down Expand Up @@ -1419,6 +1420,7 @@ def _make_singular(value):
g.custom_command('delete', 'delete_virtual_hub', supports_no_wait=True, confirmation=True)
g.show_command('show', 'get')
g.custom_command('list', 'list_virtual_hub')
g.wait_command('wait')

with self.command_group('network routeserver peering', network_virtual_hub_bgp_connection_sdk,
custom_command_type=network_virtual_hub_bgp_connection_update_sdk) as g:
Expand All @@ -1429,6 +1431,7 @@ def _make_singular(value):
custom_func_name='update_virtual_hub_bgp_connection')
g.custom_command('delete', 'delete_virtual_hub_bgp_connection', supports_no_wait=True, confirmation=True)
g.show_command('show', 'get')
g.wait_command('wait')

with self.command_group('network routeserver peering', network_virtual_hub_bgp_connections_sdk,
custom_command_type=network_virtual_hub_bgp_connections_update_sdk) as g:
Expand Down
5 changes: 5 additions & 0 deletions src/azure-cli/azure/cli/command_modules/network/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3302,6 +3302,11 @@ def create_load_balancer(cmd, load_balancer_name, resource_group_name, location=
return sdk_no_wait(no_wait, client.create_or_update, resource_group_name, deployment_name, properties)


def list_load_balancer_nic(cmd, resource_group_name, load_balancer_name):
client = network_client_factory(cmd.cli_ctx).load_balancer_network_interfaces
return client.list(resource_group_name, load_balancer_name)


def create_lb_inbound_nat_rule(
cmd, resource_group_name, load_balancer_name, item_name, protocol, frontend_port,
backend_port, frontend_ip_name=None, floating_ip=None, idle_timeout=None, enable_tcp_reset=None):
Expand Down
Loading