From 49eb0c49ea17fef1a1a4bbcabef687c01c109956 Mon Sep 17 00:00:00 2001 From: Jacob McGill Date: Tue, 6 Feb 2018 17:20:06 -0500 Subject: [PATCH] Pathatt mode (#35804) * ACI_STATIC_BINDING: Update parameter to use more standard network lingo * Add 'mode' as an alias --- .../network/aci/aci_static_binding_to_epg.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/ansible/modules/network/aci/aci_static_binding_to_epg.py b/lib/ansible/modules/network/aci/aci_static_binding_to_epg.py index da56d28bf4..9e614f5f83 100644 --- a/lib/ansible/modules/network/aci/aci_static_binding_to_epg.py +++ b/lib/ansible/modules/network/aci/aci_static_binding_to_epg.py @@ -55,13 +55,13 @@ options: - The APIC defaults the Deployement Immediacy to C(lazy). choices: [ immediate, lazy ] default: lazy - mode: + interface_mode: description: - - Mode of static EPG deployement. - - The APIC defaults the mode to C(regular). - choices: [ untagged, native, regular ] - default: regular - aliases: [ mode_name ] + - Determines how layer 2 tags will be read from and added to frames. + - The APIC defaults the mode to C(trunk). + choices: [ access, trunk, 802.1p ] + default: trunk + aliases: [ mode, interface_mode_name ] connection_type: description: - The Path Type for the static EPG deployement. @@ -107,7 +107,7 @@ EXAMPLES = r''' encap: 222 # primary_encap: 11 deploy_immediacy: lazy - mode: regular + interface_mode: access connection_type: access_interface pod: 1 paths: 1011 @@ -136,7 +136,7 @@ def main(): encap=dict(type='int', aliases=['encapsulation']), primary_encap=dict(type='int', aliases=['primary_encapsulation']), deploy_immediacy=dict(type='str', choices=['immediate', 'lazy']), - mode=dict(type='str', choices=['untagged', 'native', 'regular'], aliases=['mode_name']), + interface_mode=dict(type='str', choices=['access', 'tagged', '802.1p'], aliases=['mode', 'interface_mode_name']), connection_type=dict(type='str', choices=['access_interface', 'virtual_port_channel', 'direct_port_channel', 'fex'], required=True), # NOTE: C(pod) is usually an integer below 10. pod=dict(type='int', aliases=['pod_number']), @@ -165,7 +165,7 @@ def main(): encap = module.params['encap'] primary_encap = module.params['primary_encap'] deploy_immediacy = module.params['deploy_immediacy'] - mode = module.params['mode'] + interface_mode = module.params['interface_mode'] connection_type = module.params['connection_type'] pod = module.params['pod'] paths = module.params['paths'] @@ -240,7 +240,7 @@ def main(): encap=encap, primaryEncap=primary_encap, instrImedcy=deploy_immediacy, - mode=mode, + mode=interface_mode, tDn=static_path, ), )