Skip to content

Create a validation rule that would prevent attaching multiple networks to an access port #695

@mkilar123

Description

@mkilar123

Which role would this new feature be associated?

cisco.nac_dc_vxlan.validate

New feature description:

Access port is an interface that can have only single network/vlan attached.
I would be good to have a rule built-in that would guard that and ensure that only a single vlan is attached to an access port.

Would this be a new feature requiring a new role?

no

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

vxlan.overlay

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

no

New or Affected Documentation for New Feature

Potential Ansible Task Config

vxlan:
  topology:
    switches:
      - name: LEAF_11
        interfaces:
          - name: Ethernet1/15
            mode: access
            access_vlan: 101
            speed: 10Gb
            mtu: default
            enabled: true
  overlay:
    networks:
      - name: PROD_300
        net_id: 30000
        vrf_name: PROD_VRF
        vlan_id: 300
        vlan_name: PROD_300
        gw_ip_address: 10.30.0.1/24
        is_l2_only: false
        arp_suppress: false
        int_desc: PROD_300
        mtu_l3intf: 9100
        network_attach_group: prod_300
      - name: DEV_2002
        net_id: 30002
        vrf_name: DEV_VRF
        vlan_id: 2002
        vlan_name: DEV_2002
        gw_ip_address: 10.200.2.1/24
        is_l2_only: false
        arp_suppress: false
        dhcp_servers:
          - ip_address: 192.168.200.200
            vrf: management
        int_desc: DEV_2002
        mtu_l3intf: 9216
        network_attach_group: dev_2002
    network_attach_groups:
      - name: prod_300
        switches:
          - hostname: LEAF_11
            ports:
              - Ethernet1/15
      - name: dev_2002
        switches:
          - hostname: LEAF_11
            ports:
              - Ethernet1/15

Ansible Version

Ansible Collection Versions

Cisco Nexus Dashboard Version

Cisco NX-OS Version

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