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
10 changes: 10 additions & 0 deletions src/virtual-wan/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
Release History
===============

0.2.16
++++++
* `az network vhub`: Add new subgroup `route-map` to support managing virtual hub route map.
* `az network vhub connection create`: Add new parameter `associated_inbound_routemap` and `associated_outbound_routemap`.
* `az network vhub connection update`: Add new parameter `associated_inbound_routemap` and `associated_outbound_routemap`.
* `az network p2s-vpn-gateway create`: Add new parameter `associated_inbound_routemap` and `associated_outbound_routemap`.
* `az network p2s-vpn-gateway update`: Add new parameter `associated_inbound_routemap` and `associated_outbound_routemap`.
* `az network vpn-gateway connection create`: Add new parameter `associated_inbound_routemap` and `associated_outbound_routemap`.
* `az network vpn-gateway connection update`: Add new parameter `associated_inbound_routemap` and `associated_outbound_routemap`.

0.2.15
++++++
* Deprecate route table v2 parameters.
Expand Down
2 changes: 1 addition & 1 deletion src/virtual-wan/azext_vwan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class VirtualWanCommandsLoader(AzCommandsLoader):
def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from .profiles import CUSTOM_VWAN
register_resource_type('latest', CUSTOM_VWAN, '2021-08-01')
register_resource_type('latest', CUSTOM_VWAN, '2022-07-01')

super(VirtualWanCommandsLoader, self).__init__(
cli_ctx=cli_ctx,
Expand Down
2 changes: 1 addition & 1 deletion src/virtual-wan/azext_vwan/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def network_client_factory(cli_ctx, aux_subscriptions=None, **_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from .profiles import CUSTOM_VWAN
return get_mgmt_service_client(cli_ctx, CUSTOM_VWAN, aux_subscriptions=aux_subscriptions,
api_version='2021-08-01')
api_version='2022-07-01')


def cf_virtual_wans(cli_ctx, _):
Expand Down
15 changes: 15 additions & 0 deletions src/virtual-wan/azext_vwan/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def load_arguments(self, _):
c.argument('allow_remote_vnet_to_use_hub_vnet_gateways', arg_type=get_three_state_flag(), options_list='--use-hub-vnet-gateways', deprecate_info=c.deprecate(target='--use-hub-vnet-gateways'), help='Allow remote VNet to use hub\'s VNet gateways.')
c.argument('enable_internet_security', arg_type=get_three_state_flag(), options_list='--internet-security', help='Enable internet security and default is enabled.', default=True)

for item in ['network vhub connection create', 'network vhub connection update']:
with self.argument_context(item) as c:
c.argument('associated_inbound_routemap', help='Resource uri of inbound routemap for this connection’s routing configuration')
c.argument('associated_outbound_routemap', help='Resource uri of outbound routemap for this connection’s routing configuration')

with self.argument_context('network vhub connection list') as c:
c.argument('virtual_hub_name', vhub_name_type, id_part=None)

Expand Down Expand Up @@ -119,6 +124,11 @@ def load_arguments(self, _):
c.argument("vpn_site_link", help='The resource ID of VPN Site Link.')
c.argument('with_link', help='Create VpnConnection with default link.', arg_type=get_three_state_flag())

for item in ['network vpn-gateway connection create', 'network vpn-gateway connection update']:
with self.argument_context(item) as c:
c.argument('associated_inbound_routemap', help='Resource uri of inbound routemap for this connection’s routing configuration')
c.argument('associated_outbound_routemap', help='Resource uri of outbound routemap for this connection’s routing configuration')

with self.argument_context('network vpn-gateway connection list') as c:
# List commands cannot use --ids flag
c.argument('resource_name', vpn_gateway_name_type, id_part=None)
Expand Down Expand Up @@ -244,6 +254,11 @@ def load_arguments(self, _):
c.argument('vpn_server_config', help='Name or ID of a vpn server configuration.', validator=get_network_resource_name_or_id('vpn_server_config', 'vpnServerConfigurations'))
c.argument('location', get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group)

for item in ['network p2s-vpn-gateway create', 'network p2s-vpn-gateway update']:
with self.argument_context(item) as c:
c.argument('associated_inbound_routemap', help='Resource uri of inbound routemap for this connection’s routing configuration')
c.argument('associated_outbound_routemap', help='Resource uri of outbound routemap for this connection’s routing configuration')

with self.argument_context('network p2s-vpn-gateway connection') as c:
for dest in ['gateway_name', 'resource_name']:
c.argument(dest, p2s_vpn_gateway_name_type)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"network vhub route-map",
)
class __CMDGroup(AAZCommandGroup):
"""Manage route map
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._get_inbound_routes import *
from ._get_outbound_routes import *
from ._list import *
from ._show import *
from ._update import *
from ._wait import *
Loading