Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need ability to add interface description to vPC, portchannel, etc #308

Open
cobedien opened this issue Jul 16, 2024 · 1 comment
Open

Comments

@cobedien
Copy link

cobedien commented Jul 16, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Need ability to add interface description to vPC, portchannel, etc

More specifically need the ability to add descriptions to the member interfaces

interface loopback0
description Routing loopback interface. <<<<>>>
ip address 10.11.0.2/32
ip router ospf UNDERLAY area 0.0.0.0
ip pim sparse-mode

New or Affected modules(s):

  • dcnm_XXXXX

DCNM version

  • V x.x.x

Potential ansible task config

# Copy-paste your ansible playbook

References

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

@dionilde-costa
Copy link

Please have a look at this. Type, mode and admin_state are required but if I only want to change the description of the interface, it will actually replace those key's values by the default values.

Is there a workaround for this?

failed: [ndfc] (item=default - switch1 - Eth1/1) => {"ansible_loop_var": "item", "changed": false, "item": {"description": "new_desc", "mode": "routed", "name": "Eth1/1", "type": "eth"}, "msg": {"CHANGED": [{"debugs": [], "deferred": [], "delete_deploy": [], "deleted": [], "deploy": [{"fabricName": "default", "ifName": "Ethernet1/1", "serialNumber": "XXXXXXXXXXX"}], "merged": [{"interfaceType": "INTERFACE_ETHERNET", "interfaces": [{"fabricName": "default", "ifName": "Ethernet1/1", "interfaceType": "INTERFACE_ETHERNET", "nvPairs": {"ADMIN_STATE": "true", "CONF": "", "DESC": "new_desc", "INTF_NAME": "Ethernet1/1", "INTF_VRF": "default", "IP": "", "MTU": "9216", "PREFIX": "", "ROUTING_TAG": "", "SPEED": "Auto"}, "serialNumber": "XXXXXXXXXXX"}], "policy": "int_routed_host"}], "overridden": [], "query": [], "replaced": [], "skipped": []}], "DATA": [{"column": 0, "entity": "", "line": 0, "message": "Ethernet1/1 has policy attached from Ethernet1/1.Policy cannot be changed !!!", "reportItemType": "ERROR"}], "MESSAGE": "Internal Server Error", "METHOD": "PUT", "REQUEST_PATH": "https://192.168.1.1:443/appcenter/cisco/ndfc/api/v1/lan-fabric/rest/interface", "RETURN_CODE": 500}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants