Skip to content

Commit 66bf5a6

Browse files
authored
[Network] Deprecate route table V2 (Azure#2721)
1 parent 7a248d8 commit 66bf5a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/virtual-wan/azext_vwan/_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ def load_arguments(self, _):
8888
with self.argument_context('network vhub route-table') as c:
8989
c.argument('virtual_hub_name', vhub_name_type, id_part=None)
9090
c.argument('route_table_name', options_list=['--name', '-n'], help='Name of the virtual hub route table.')
91-
c.argument('attached_connections', options_list='--connections', nargs='+', arg_type=get_enum_type(['All_Vnets', 'All_Branches']), help='List of all connections attached to this route table', arg_group="route table v2")
91+
c.argument('attached_connections', options_list='--connections', nargs='+', arg_type=get_enum_type(['All_Vnets', 'All_Branches']), help='List of all connections attached to this route table', arg_group="route table v2", deprecate_info=c.deprecate(hide=False))
9292
c.argument('destination_type', arg_type=get_enum_type(['Service', 'CIDR', 'ResourceId']), help='The type of destinations')
9393
c.argument('destinations', nargs='+', help='Space-separated list of all destinations.')
9494
c.argument('next_hop_type', arg_type=get_enum_type(['IPAddress', 'ResourceId']), help='The type of next hop. If --next-hops (v2) is provided, it should be IPAddress; if --next-hop (v3) is provided, it should be ResourceId.')
95-
c.argument('next_hops', nargs='+', help='Space-separated list of IP address of the next hop. Currently only one next hop is allowed for every route.', arg_group="route table v2")
95+
c.argument('next_hops', nargs='+', help='Space-separated list of IP address of the next hop. Currently only one next hop is allowed for every route.', arg_group="route table v2", deprecate_info=c.deprecate(hide=False))
9696
c.argument('index', type=int, help='List index of the item (starting with 1).')
9797
c.argument('next_hop', help='The resource ID of the next hop.', arg_group="route table v3", min_api='2020-04-01')
9898
c.argument('route_name', help='The name of the route.', arg_group="route table v3", min_api='2020-04-01')

0 commit comments

Comments
 (0)