Skip to content

Commit 9814d06

Browse files
caberoscaberos
authored andcommitted
subnet route and subnet clear-route
1 parent d589ba4 commit 9814d06

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

SoftLayer/CLI/subnet/route.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
@click.argument('identifier')
1818
@click.option('--target', type=click.Choice(['vlan', 'ip', 'hardware', 'vsi']),
1919
help='choose the type. vlan, ip, hardware, vsi')
20-
@click.option('--target-id', help='The identifier for the destination resource to route this subnet to. ')
20+
@click.option('--target-resource', help='An appropriate identifier for the specified $type. '
21+
'Some types have multiple identifier. ')
2122
@environment.pass_env
22-
def cli(env, identifier, target, target_id):
23+
def cli(env, identifier, target, target_resource):
2324
"""Assigns the subnet to a target."""
2425

2526
mgr = SoftLayer.NetworkManager(env.client)
26-
mgr.route(identifier, target_types.get(target), target_id)
27+
mgr.route(identifier, target_types.get(target), target_resource)

0 commit comments

Comments
 (0)