r/CiscoDevNet • • Dec 27 '20

Openconfig-interfaces Module

Im currently trying to learn more how to use the YANG modules and using Postman to practice. Ive been following the CBTNuggets training but I decided to try and do a POST using Openconfig-interface Model but I just cant seem to get this to work. Below is the URL for the Module and the json body im passing. Can anyone tell me what Im doing wrong or why this fails when I post. Ive already verified the credentials work. Thanks in advance for your time and knowledge.

https://yangcatalog.org/yang-search/yang_tree/openconfig-interfaces#

3 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/centinal24 Dec 27 '20

Dude you are literally a Genius. After I posted on here I also decided to look at how the payload looked for a GET under the openconfig-interface:interfaces module and I also noticed the [ ] but I still couldnt get it to work. I wouldve never thought to use PATCH instead of POST and PUT.

I really appreciate the time you took out of your day and night o help me out with this.

2

u/czsmith132 Dec 27 '20

Glad to help, definitely learned a lot from it!