cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1227
Views
10
Helpful
2
Replies

NSO - questions & clarifications

GiulianoIng
Level 1
Level 1

Hi everyone,

 

I have a few questions about NSO

 

1- How can I deploy the same service multiple times on the same device ?

 

Let me show you what i mean ( i have to post imgur images because it seems like i'm not able to upload them otherwhise)

This is our service "interface configuration"  :  https://i.imgur.com/Pi2VyJ6.png

If i try to apply the service once more to the same device (eg: https://i.imgur.com/QjJg927.png)

I get an error message : https://i.imgur.com/PoxFbiW.png

 

Why does this happen only with this service? If i try to do the same thing with our "simple_acl" service it lets me apply the service multiple times : https://i.imgur.com/RoCFsYx.png

 

It would actually be great if there was a way to make me config all the interfaces I want from a given device, without having to apply multiple times the same service to the same device. You can find the .yang of the service attached, I'm opened to any suggestion. 

 

2- Is it possible to recall all the existing interfaces in a device instead of only a given type? How?

 

What I mean by that is:

 

choice interface {
case ios-GigabitEthernet {

leaf GigabitEthernet {
type leafref {
path "deref(../device)/../ncs:config/ios:interface/ios:GigabitEthernet/ios:name";

}
}
} //case ios-Gigabit

case ios-TenGigabitEthernet {

leaf TenGigabitEthernet {
type leafref {
path "deref(../device)/../ncs:config/ios:interface/ios:TenGigabitEthernet/ios:name";

}
}
} //case ios-TenGigabit

 

I'm recalling interfaces on a per-type basis, because i'm not able to recall all the interfaces in the device, is there any other way to do that? The interface-conf.yang is always attached

 

 

3- Why doesn't NSO GUI show me the "parameters" configuration if I don't put it under a "choice" ? 

 

If i use containers It actually appears as fillable but when i go to the configuration manager to apply the configuration nothing shows up under the "native" configuration, that means that the device won't apply any configuration. The "choice" i made in the yang file (attached) is only a work-around to make it actually appear. 

 

Thanks in advance!

Regards,

-G.I.

 

 

 

 

2 Replies 2

Andre Gustavo Albuquerque
Cisco Employee
Cisco Employee

The YANG model defines the interface as a leaf and not leaf-list or list, so, there is only one possible per device, as device is the service key.

Ok,thank you very much, the first point is clear then, have you any other hints on the other ones?