Coder Social home page Coder Social logo

Comments (4)

Tessier-Ashp001 avatar Tessier-Ashp001 commented on June 9, 2024

Update:

I think ansible is sending the following in the data field of the POST request (which is built from .ansible/collections/ansible_collections/cisco/dcnm/plugins/modules/dcnm_interface.py):

{
  "policy": "int_loopback_11_1",
  "interfaces": [
    {"interfaceType": "INTERFACE_LOOPBACK",
      "nvPairs": {
      "ROUTE_MAP_TAG": "",
      "CONF": "no shutdown",
      "IP": "99.99.99.99",
      "V6IP": "",
      "INTF_VRF": "",
      "ADMIN_STATE": "true",
      "INTF_NAME": "Loopback95",
      "DESC": "loopback interface 95 configuration"
      },
      "ifName": "Loopback95",
      "serialNumber": "SDDSFOSEF4",
      "fabricName": "my-fabric"}
      ],
      "skipResourceCheck": "true"
}

From the latest DCNM API documentation, what is should look like is:

{
  "policy": "int_loopback_11_1",
  "interfaceType": "INTERFACE_LOOPBACK",
  "interfaces": [
    {
      "serialNumber": "SDDSFOSEF4",
      "ifName": "Loopback95",
      "nvPairs": {
      "ROUTE_MAP_TAG": "",
      "CONF": "no shutdown",
      "IP": "99.99.99.99",
      "V6IP": "",
      "INTF_VRF": "",
      "ADMIN_STATE": "true",
      "INTF_NAME": "Loopback95",
      "DESC": "loopback interface 95 configuration"
      }
    }
  ]
}

from ansible-dcnm.

Tessier-Ashp001 avatar Tessier-Ashp001 commented on June 9, 2024

resolved in develop branch...

from ansible-dcnm.

mikewiebe avatar mikewiebe commented on June 9, 2024

@Tessier-Ashp001 Thanks for opening this issue. Just for clarification, were you testing with the latest release version from Ansible galaxy but then discovered that this is resolved in the develop branch?

from ansible-dcnm.

Tessier-Ashp001 avatar Tessier-Ashp001 commented on June 9, 2024

Hi @mikewiebe That's it exactly. Ansible Galaxy gave me the 1.0.0 version I think, which looks to be from last September. So I just reinstalled the collection specifying the develop branch this time. It's working fine now.

Thanks!

from ansible-dcnm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.