I wants to use ncs maapi/maagic python API to perform it but I don't find any command in root object for it :
with ncs.maapi.Maapi() as m:
with ncs.maapi.Session(m, "nso", "pyNORTHNSO"):
with m.start_write_trans() as t:
root = ncs.maagic.get_root(t)
out = root.devices.device["RNET-M6"]
for i in out.config:
Any idea of how to launch deactivate using NSO python API ?
You would have to use the low-level MAAPI (not MAAGIC) API to set attributes ("inactive" is an attribute). Setting attributes from a service does not work the way you'd expect, however, so I can't recommend this approach.
Live Event & Video On-Demand
Individual Live Sessions
Telstra Network Transformation with AutomationRoss Manariti, Technical Product Owner - Resource Domain & Element Management, Telstra
Customer services across thousands of network a...
If you are an NSO user, you are probably aware that when you write and read data from any of the NSO northbound interface agents, such as NETCONF, RESTCONF, CLI, MAAPI, etc., those agents are going through the NSO transaction manager before reaching the C...
NSO Developer Days is an opportunity for both new and experienced customers to come together and network, share best practices, meet engineering and learn more about what is coming next for NSO. Join service provider and enterprise network automation pro...
I have a simple service to configure an IP under loopback interface, but how do I delete the IP, if the one I am going to configure is pre-existing on another interface or at least give a warning that this IP is already in use?
Here is m...
Hi, As I understand, when I source ncsrc then it inserts pyang version 1.5 in my path and won't be the use the one I had installed on my system. I'm still facing the same errors every time when executing pyang : ❯ pyang test01....