Skip to content

Commit

Permalink
Merge pull request #48 from dsoper2/vlan
Browse files Browse the repository at this point in the history
Support params used by ucs_vlans
  • Loading branch information
dsoper2 authored Jan 15, 2025
2 parents 63c38bd + e3ee0c5 commit 3765350
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace: cisco
name: ucs

# The version of the collection. Must be compatible with semantic versioning
version: 1.14.0
version: 1.15.0

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
4 changes: 4 additions & 0 deletions playbooks/ucs_vnic_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
native: 'yes'
- name: vlan200
native: 'no'
multicast_policy: default
fabric: A
id: '200'
sharing: none
delegate_to: localhost

- name: Remove VLAN from template
Expand Down
34 changes: 34 additions & 0 deletions plugins/modules/ucs_vnic_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,36 @@
choices: ['no', 'yes']
default: 'no'
type: str
multicast_policy:
description:
- Note this option is not used and is only provided to allow use of ucs_vlans parameters in the vlan_list.
- The multicast policy associated with this VLAN.
type: str
fabric:
description:
- Note this option is not used and is only provided to allow use of ucs_vlans parameters in the vlan_list.
- "The fabric configuration of the VLAN. This can be one of the following:"
- "common - The VLAN applies to both fabrics and uses the same configuration parameters in both cases."
- "A — The VLAN only applies to fabric A."
- "B — The VLAN only applies to fabric B."
choices: [common, A, B]
type: str
id:
description:
- Note this option is not used and is only provided to allow use of ucs_vlans parameters in the vlan_list.
- The unique string identifier assigned to the VLAN.
type: str
sharing:
description:
- Note this option is not used and is only provided to allow use of ucs_vlans parameters in the vlan_list.
- The Sharing Type field.
- "Whether this VLAN is subdivided into private or secondary VLANs. This can be one of the following:"
- "none - This VLAN does not have any secondary or private VLANs. This is a regular VLAN."
- "primary - This VLAN can have one or more secondary VLANs, as shown in the Secondary VLANs area."
- "isolated - This is a private VLAN associated with a primary VLAN. This VLAN is an Isolated VLAN."
- "community - This VLAN can communicate with other ports on the same community VLAN as well as the promiscuous port. This VLAN is a Community VLAN."
choices: [none, primary, isolated, community]
type: str
state:
description:
- If present, will verify VLAN is present on template.
Expand Down Expand Up @@ -232,6 +262,10 @@
def main():
vlans_list = dict(
name=dict(type='str'),
multicast_policy=dict(type='str'),
fabric=dict(type='str', choices=['common', 'A', 'B']),
id=dict(type='str'),
sharing=dict(type='str', choices=['none', 'primary', 'isolated', 'community']),
native=dict(type='str', default='no', choices=['no', 'yes']),
state=dict(type='str', default='present', choices=['present', 'absent']),
)
Expand Down
Binary file added releases/cisco-ucs-1.15.0.tar.gz
Binary file not shown.

0 comments on commit 3765350

Please sign in to comment.