I am trying to create a multi-stage service model where certain selections provide the user with different choices and/or different templates. For example, assume the following YANG: leaf device-size { type enumeration { enum ...
I have a leafref() that is generating a list of devices based on the devices currently managed by NSO. leaf csp-device { type leafref { path "/ncs:devices/ncs:device/ncs:name"; } mandatory true; }I would like to filter tha...
I have the following YANG: leaf asa-outside-subent { tailf:info "ASA Outside Interface Subnet"; type inet:ipv4-address { } }Once the user inputs a subnet, I want to remove the .0 at the end, and use the first 3 octets to f...
I am attempting to use deref() to generate a list of interfaces based on a previously selected device in the same service model. Once the users select a device (which is another leafref), I want to pull the list of interfaces from the CDB and presen...
So, if I am understanding this correctly, the following lines dictate when a certain section of the XML is actually "applicable"? <config-template xmlns="http://tail-f.com/ns/config/1.0" servicepoint="template-svc"> <devices x...
Awesome! Thanks that worked =)2 things:1) I noticed that the YANG would not compile unless I used ' ' for the whole must() statement and " " for the string. I thought those were interchangeable in YANG ... is that not the case?2) I am now attempting...
Wow, thanks Gregg! This is really helpful. The last part that is confusing to me is what is tying the YANG and the XML to the Python? I am assuming the Python script is saved in the /python folder (SUBSTRING.py), but what happens in NSO to run/call...
Just to update the thread here, I was able to get my deref() working (with some help) by making a few different changes. Here is the final, working code: leaf vnic1-pnic { type leafref {path "deref(../../csp-device)/../ncs:config/pnic:pnics/p...