CiscoDevNet / ansible-dcnm

Apache License 2.0
45 stars 36 forks source link

Support for vlan interfaces to be interacted via dcnm_interface_module #171

Closed samurato closed 1 year ago

samurato commented 2 years ago

Community Note

Description

New or Affected modules(s):

DCNM version

Potential ansible task config

# Copy-paste your ansible playbook
name: Replace loopback interfaces
  cisco.dcnm.dcnm_interface:
    fabric: "{{ targeted_fabric }}"
    state: replaced                      
    config:
      - name: Vlan98                                              
        switch:
          - "{{ ip }}"                 # provide the switch where to deploy the config
        deploy: false 
        type: inteface_vlan                    ## choose from [true, false]
        profile:             ## choose from [true, false]
          admin_state: true                ## Routing Tag for the interface
          cmds:                          # Freeform config
            - no ip ospf passive-interface
          description: "^:interlink:L3:UNDERLAY-Inter-Switch:vlan98"

References

Currently I can see SVIs are not supported. by Using API tool in DCNM I was able to get the following parameters were pased in JSON file

{
      "serialNumber": "",
      "interfaceType": "INTERFACE_VLAN",
      "ifName": "Vlan98",
      "fabricName": "sam-fabric",
      "nvPairs": {
        "IP": "10.0.2.0",
        "PREFIX": "31",
        "V6IP": "",
        "V6PREFIX": "",
        "LINK_STATE_ROUTING": "ospf",
        "LINK_STATE_ROUTING_TAG": "VXLAN_UNDERLAY",
        "OSPF_AREA_ID": "0.0.0.0",
        "OSPF_AUTH_KEY_ID": "",
        "OSPF_AUTH_KEY": "",
        "ISIS_AUTH_KEYCHAIN_NAME": "",
        "IS_TYPE": "",
        "ISIS_P2P_ENABLE": "",
        "REPLICATION_MODE": "Multicast",
        "MTU": "9216",
        "BFD_ECHO_DISABLE": true,
        "DESC": "^UNDERLAY-Inter-Switch:vlan98",
        "CONF": " ip ospf bfd\n ip arp timeout 900",
        "ADMIN_STATE": true,
        "BFD_ENABLE": true,
        "BFD_AUTH_ENABLE": false,
        "BFD_AUTH_KEY_ID": "",
        "BFD_AUTH_KEY": "",
        "INTF_NAME": "Vlan98"
      }

Additional context Add any other context or screenshots about the feature request here.

mikewiebe commented 2 years ago

@samurato Thanks for raising the issue.

We are in the process of adding SVI support to the dcnm_interface module. The development is almost finished and then once it's fully tested we will release the new support in the module.

We also have this issue tracking the addition of SVI interfaces to the module

https://github.com/CiscoDevNet/ansible-dcnm/issues/78

praveenramoorthy commented 1 year ago

@samurato SVI support has been added to dcnm_interface as part of 2.4.0 release.