11-14-2018 11:37 PM
I'm trying to add some codes to the yang file "tailf-ned-cisco-nx.yang" as follows with red color. My cisco-nx version is v5.7.1.
This part of codes was removed after v4.1.13 probably. I just want to enable it.
container allowed { tailf:info "Set allowed VLAN characteristics when interface "+ "is in trunking mode"; // interface * / switchport trunk allowed vlan container vlan { tailf:info "Set allowed VLANs when interface is in trunking mode (NOTE: this is not a presence, only used internally)"; tailf:cli-delete-when-empty; tailf:cli-display-separated; tailf:cli-diff-dependency "../../../mode"; presence true; // NOTE: this is not a presence, only used internally choice vlan-choice { leaf fixed { // Note: Must not be leaf with type empty, breaks java code! tailf:cli-drop-node-name; type enumeration { // interface * / switchport trunk allowed vlan all enum "all" { tailf:info "All VLANs"; } // interface * / switchport trunk allowed vlan none enum "none" { tailf:info "No VLANs"; } } } leaf-list ids { tailf:cli-drop-node-name; tailf:cli-range-list-syntax; type vlan-list-type; } } }
It looks like I can build it successfully, running "request package reload" successfully, but I can't find the "all" option in NSO webui.
But in my test env, not prod env, with license status "Development mode: enable", it's working fine.
Any ideas about it, thanks.
Scott
11-15-2018 01:05 AM
This is because I should upgrade the package in the folder as below in PROD env.
/opt/ncs/packages
Resolved!
Scott
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide