ACI_BD: Add option to set mac-address (#34843)
* Add option to set mac-address * Fix missing version_added * Fix booleans
This commit is contained in:
parent
64e1593243
commit
32997a5160
1 changed files with 16 additions and 6 deletions
|
@ -29,7 +29,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Determines if the Bridge Domain should flood ARP traffic.
|
- Determines if the Bridge Domain should flood ARP traffic.
|
||||||
- The APIC defaults new Bridge Domains to C(no).
|
- The APIC defaults new Bridge Domains to C(no).
|
||||||
choices: [ no, yes ]
|
type: bool
|
||||||
default: no
|
default: no
|
||||||
bd:
|
bd:
|
||||||
description:
|
description:
|
||||||
|
@ -48,20 +48,20 @@ options:
|
||||||
description:
|
description:
|
||||||
- Determines if PIM is enabled
|
- Determines if PIM is enabled
|
||||||
- The APIC defaults new Bridge Domains to C(no).
|
- The APIC defaults new Bridge Domains to C(no).
|
||||||
choices: [ no, yes ]
|
type: bool
|
||||||
default: no
|
default: no
|
||||||
enable_routing:
|
enable_routing:
|
||||||
description:
|
description:
|
||||||
- Determines if IP forwarding should be allowed.
|
- Determines if IP forwarding should be allowed.
|
||||||
- The APIC defaults new Bridge Domains to C(yes).
|
- The APIC defaults new Bridge Domains to C(yes).
|
||||||
choices: [ no, yes ]
|
type: bool
|
||||||
default: yes
|
default: yes
|
||||||
endpoint_clear:
|
endpoint_clear:
|
||||||
description:
|
description:
|
||||||
- Clears all End Points in all Leaves when C(yes).
|
- Clears all End Points in all Leaves when C(yes).
|
||||||
- The APIC defaults new Bridge Domains to C(no).
|
- The APIC defaults new Bridge Domains to C(no).
|
||||||
- The value is not reset to disabled once End Points have been cleared; that requires a second task.
|
- The value is not reset to disabled once End Points have been cleared; that requires a second task.
|
||||||
choices: [ no, yes ]
|
type: bool
|
||||||
default: no
|
default: no
|
||||||
endpoint_move_detect:
|
endpoint_move_detect:
|
||||||
description:
|
description:
|
||||||
|
@ -87,7 +87,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Determines if the Bridge Domain should learn End Point IPs.
|
- Determines if the Bridge Domain should learn End Point IPs.
|
||||||
- The APIC defaults new Bridge Domains to C(yes).
|
- The APIC defaults new Bridge Domains to C(yes).
|
||||||
choices: [ no, yes ]
|
type: bool
|
||||||
ipv6_nd_policy:
|
ipv6_nd_policy:
|
||||||
description:
|
description:
|
||||||
- The name of the IPv6 Neighbor Discovery Policy the Bridge Domain should use when
|
- The name of the IPv6 Neighbor Discovery Policy the Bridge Domain should use when
|
||||||
|
@ -108,8 +108,14 @@ options:
|
||||||
description:
|
description:
|
||||||
- Determines if the BD should limit IP learning to only subnets owned by the Bridge Domain.
|
- Determines if the BD should limit IP learning to only subnets owned by the Bridge Domain.
|
||||||
- The APIC defaults new Bridge Domains to C(yes).
|
- The APIC defaults new Bridge Domains to C(yes).
|
||||||
choices: [ no, yes ]
|
type: bool
|
||||||
default: yes
|
default: yes
|
||||||
|
mac_address:
|
||||||
|
description:
|
||||||
|
- The MAC Address to assign to the C(bd) instead of using the default.
|
||||||
|
choices: [ mac ]
|
||||||
|
default: 00:22:BD:F8:19:FF
|
||||||
|
version_added: '2.5'
|
||||||
multi_dest:
|
multi_dest:
|
||||||
description:
|
description:
|
||||||
- Determines the forwarding method for L2 multicast, broadcast, and link layer traffic.
|
- Determines the forwarding method for L2 multicast, broadcast, and link layer traffic.
|
||||||
|
@ -142,6 +148,7 @@ EXAMPLES = r'''
|
||||||
state: present
|
state: present
|
||||||
tenant: prod
|
tenant: prod
|
||||||
bd: web_servers
|
bd: web_servers
|
||||||
|
mac_address: 00:22:BD:F8:19:FE
|
||||||
vrf: prod_vrf
|
vrf: prod_vrf
|
||||||
|
|
||||||
- name: Add an FC Bridge Domain
|
- name: Add an FC Bridge Domain
|
||||||
|
@ -223,6 +230,7 @@ def main():
|
||||||
l2_unknown_unicast=dict(choices=['proxy', 'flood']),
|
l2_unknown_unicast=dict(choices=['proxy', 'flood']),
|
||||||
l3_unknown_multicast=dict(choices=['flood', 'opt-flood']),
|
l3_unknown_multicast=dict(choices=['flood', 'opt-flood']),
|
||||||
limit_ip_learn=dict(type='str', choices=['no', 'yes']),
|
limit_ip_learn=dict(type='str', choices=['no', 'yes']),
|
||||||
|
mac_address=dict(type='str', aliases=['mac']),
|
||||||
multi_dest=dict(choices=['bd-flood', 'drop', 'encap-flood']),
|
multi_dest=dict(choices=['bd-flood', 'drop', 'encap-flood']),
|
||||||
state=dict(choices=['absent', 'present', 'query'], type='str', default='present'),
|
state=dict(choices=['absent', 'present', 'query'], type='str', default='present'),
|
||||||
tenant=dict(type='str', aliases=['tenant_name']),
|
tenant=dict(type='str', aliases=['tenant_name']),
|
||||||
|
@ -264,6 +272,7 @@ def main():
|
||||||
l2_unknown_unicast = module.params['l2_unknown_unicast']
|
l2_unknown_unicast = module.params['l2_unknown_unicast']
|
||||||
l3_unknown_multicast = module.params['l3_unknown_multicast']
|
l3_unknown_multicast = module.params['l3_unknown_multicast']
|
||||||
limit_ip_learn = module.params['limit_ip_learn']
|
limit_ip_learn = module.params['limit_ip_learn']
|
||||||
|
mac_address = module.params['mac_address']
|
||||||
multi_dest = module.params['multi_dest']
|
multi_dest = module.params['multi_dest']
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
tenant = module.params['tenant']
|
tenant = module.params['tenant']
|
||||||
|
@ -304,6 +313,7 @@ def main():
|
||||||
epMoveDetectMode=endpoint_move_detect,
|
epMoveDetectMode=endpoint_move_detect,
|
||||||
ipLearning=ip_learning,
|
ipLearning=ip_learning,
|
||||||
limitIpLearnToSubnets=limit_ip_learn,
|
limitIpLearnToSubnets=limit_ip_learn,
|
||||||
|
mac=mac_address,
|
||||||
mcastAllow=enable_multicast,
|
mcastAllow=enable_multicast,
|
||||||
multiDstPktAct=multi_dest,
|
multiDstPktAct=multi_dest,
|
||||||
name=bd,
|
name=bd,
|
||||||
|
|
Loading…
Reference in a new issue