added support for breakout ports (#51607)
parent
b8790abcbe
commit
f3907c977c
|
@ -108,7 +108,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- The type of interface for the static EPG deployement.
|
- The type of interface for the static EPG deployement.
|
||||||
type: str
|
type: str
|
||||||
choices: [ fex, port_channel, switch_port, vpc ]
|
choices: [ breakout, fex, port_channel, switch_port, vpc ]
|
||||||
default: switch_port
|
default: switch_port
|
||||||
version_added: '2.6'
|
version_added: '2.6'
|
||||||
state:
|
state:
|
||||||
|
@ -280,6 +280,7 @@ from ansible.module_utils.network.aci.aci import ACIModule, aci_argument_spec
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
INTERFACE_TYPE_MAPPING = dict(
|
INTERFACE_TYPE_MAPPING = dict(
|
||||||
|
breakout='uni/infra/funcprof/brkoutportgrp-{0}',
|
||||||
fex='uni/infra/funcprof/accportgrp-{0}',
|
fex='uni/infra/funcprof/accportgrp-{0}',
|
||||||
port_channel='uni/infra/funcprof/accbundle-{0}',
|
port_channel='uni/infra/funcprof/accbundle-{0}',
|
||||||
switch_port='uni/infra/funcprof/accportgrp-{0}',
|
switch_port='uni/infra/funcprof/accportgrp-{0}',
|
||||||
|
@ -300,7 +301,7 @@ def main():
|
||||||
from_card=dict(type='str', aliases=['from_card_range']),
|
from_card=dict(type='str', aliases=['from_card_range']),
|
||||||
to_card=dict(type='str', aliases=['to_card_range']),
|
to_card=dict(type='str', aliases=['to_card_range']),
|
||||||
policy_group=dict(type='str', aliases=['policy_group_name']),
|
policy_group=dict(type='str', aliases=['policy_group_name']),
|
||||||
interface_type=dict(type='str', default='switch_port', choices=['fex', 'port_channel', 'switch_port', 'vpc']),
|
interface_type=dict(type='str', default='switch_port', choices=['breakout', 'fex', 'port_channel', 'switch_port', 'vpc']),
|
||||||
state=dict(type='str', default='present', choices=['absent', 'present', 'query']),
|
state=dict(type='str', default='present', choices=['absent', 'present', 'query']),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue