Skip to content

Add the ability to use port profiles #332

@peter8498

Description

@peter8498

Which role would this new feature be associated?

cisco.nac_dc_vxlan.dtc.create

New feature description:

Add the ability to create port profiles in the data model that can then be used to define a standard port on a switch with a consistent config that we don't need to define repetativly. For example:
vxlan:
  topology:
    port_profiles:
      unused_port:
        mode: trunk
        description: UNUSED_PORT
        enabled: false
      host_access:
        mode: access
        spanning_tree_portfast: true
        enable_bpdu_guard: true
        description: STANDARD ACCESS PORT
        enabled: true
...
    switches:
      - name: <MY_SWITCH>
        interfaces:
          - name: ethernet1/1
            port_profile: unused_port
          - name: ethernet1/2
            port_profile: unused_port
          - name: ethernet1/3
            port_profile: host_access

Would this be a new feature requiring a new role?

No, can be added to the create role

Which section of the data model is the new feature related?

vxlan.topology

Would this be a new feature requiring a new addition to the data model?

Yes, need to add port profiles to the data model

New or Affected Documentation for New Feature

New tests and data model updates

Potential Ansible Task Config

Probably can be done when building the extended data model in the python code, to copy the port profile settings into the interface section. No ansible changes would be needed then.

Ansible Version

2.17

Ansible Collection Versions

cisco.dcnm                               4.0

Cisco NDFC Version

12.2.2

Cisco NX-OS Version

na

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions