Skip to content

Commit e4351c3

Browse files
committed
Fix cisco n1kv plugin cli option and help
Rename VXLAN option to OVERLAY and add help for sub-type field in the Cisco N1kv specific cli to accomodate cisco-plugin-n1k-enh-vxlan-support blueprint. Change-Id: I4a3dc7ad1b45f6effebd6fd337c51e7c0eeba84c Closes-Bug: #1220966
1 parent db7b01d commit e4351c3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

neutronclient/neutron/v2_0/networkprofile.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
from neutronclient.openstack.common.gettextutils import _
2424

2525
RESOURCE = 'network_profile'
26-
SEGMENT_TYPE_CHOICES = ['vlan', 'vxlan', 'multi-segment', 'trunk']
27-
SEGMENT_SUBTYPE_CHOICES = ['vlan', 'vxlan']
26+
SEGMENT_TYPE_CHOICES = ['vlan', 'overlay', 'multi-segment', 'trunk']
2827

2928

3029
class ListNetworkProfile(neutronV20.ListCommand):
@@ -58,9 +57,11 @@ def add_known_arguments(self, parser):
5857
parser.add_argument('segment_type',
5958
choices=SEGMENT_TYPE_CHOICES,
6059
help='Segment type')
60+
# TODO(Abhishek): Check on sub-type choices depending on segment_type
6161
parser.add_argument('--sub_type',
62-
choices=SEGMENT_SUBTYPE_CHOICES,
63-
help='Sub-type for the Segment')
62+
help='Sub-type for the segment. Available sub-'
63+
'types for overlay segments: native, enhanced; '
64+
'For trunk segments: vlan, overlay.')
6465
parser.add_argument('--segment_range',
6566
help='Range for the Segment')
6667
parser.add_argument('--physical_network',

0 commit comments

Comments
 (0)