03-01-2021 05:09 PM
Hello!!
I am using NSO 5.2.2, I have a service model where I have a container (presence true). In that container, there is a leaf which is leafref.
Snippet of service model given :
service model snippet:
choice type {
case odn {
container odn {
presence true;
leaf route-policy {
tailf:info "Route policy definition";
description "Route policy definition";
type leafref {
path "/cisco-flat-L2vpn-fp:l2vpn-route-policy/cisco-flat-L2vpn-fp:name";
}
mandatory true;
}
leaf direction {
tailf:info "Route policy direction";
description "Route policy direction";
type enumeration {
enum in;
enum out;
}
default in;
}
}
}
case preferred-path {
uses sr-te-pref-path-grp;
}
On NSO web UI, I create a service with odn and a valid route-policy and commit. Now, I want to remove the route-policy (basically the odn container). Web UI doesn't let me do that. Same thing from CLI can be done like:
admin@ncs(config)# no cisco-flat-L2vpn-fp:flat-L2vpn evpn-vpws-1 flat-L2vpn-evpn-vpws local-site sr-te odn
admin@ncs(config)# commit dry-run
cli {
local-node {
data flat-L2vpn evpn-vpws-1 {
flat-L2vpn-evpn-vpws {
local-site {
sr-te {
- odn {
- route-policy evpn_policy1;
- }
}
}
}
}
}
-----
Is there something I can do in this model to overcome this issue since customer will be using web UI for service configuration.
Is this a known issue with web UI? Do we have the fix for this in later versions or planned?
Thanks,
Neetika
Solved! Go to Solution.
03-05-2021 07:41 AM
I figured out Web UI has an option on top right corner to handle deletion of containers
03-05-2021 07:41 AM
I figured out Web UI has an option on top right corner to handle deletion of containers
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