cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1108
Views
5
Helpful
1
Replies

NSO Web UI Container with leafref leaf

neetimit
Cisco Employee
Cisco Employee

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

1 Accepted Solution

Accepted Solutions

neetimit
Cisco Employee
Cisco Employee

I figured out Web UI has an option on top right corner to handle deletion of containers 

View solution in original post

1 Reply 1

neetimit
Cisco Employee
Cisco Employee

I figured out Web UI has an option on top right corner to handle deletion of containers 

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?