How do i rename the device name in nso through python maapi
From nso cli i can rename device name to some new name
rename devices device old_name new_name
i am trying this but getting error:
with ncs.maapi.Maapi() as m: with ncs.maapi.Session(m, 'azhar', 'system'): with m.start_write_trans() as t: root = ncs.maagic.get_root(t) old_device = root.devices.device['MADSIM11'] m.move(t.th, ['new_device'], old_device._path) t.apply(True, maapi.COMMIT_NCS_NO_NETWORKING)
this is the error i am getting:
Traceback (most recent call last): File "/home/azhar/Documents/scripts/rename_nso_devices.py", line 173, in <module> m.move(t.th, [new_device], old_device._path) File "/opt/ncs/current/src/ncs/pyapi/ncs/maapi.py", line 272, in proxy return real(self2.msock, *args, **kwargs) TypeError: tokey must be a _ncs.Value instance [Finished in 0.1s with exit code 1]
We're excited to announce our third annual Cisco NSO Developer Days NYC!
Returning to New York City, the two-day event is a tremendous opportunity to learn more about real-world applications of automation, gain a better understanding of NSO technol...
Want to run both python2 and python3 packages at the same time? Maybe you don't want to upgrade all your python2 services at the same time? With some small changes to the "ncs-python-start-vm" script you can. While you are at it maybe you would like...
The official report from the ETSI Remote NFV API Plugtest as well as the 4th Plugtest events have now been posted:
Here is a list of all the NSO Developer Days 2019 presentations. Each video has a link to the respective NSO Developer Hub post with slides and details.
Keynote: Dr. Marcus Hacke, Founder & CEO of ngena
NSO and the Orange Internationa...
Here is a list of links related to Rakuten's new all-virtual mobile network
Reimagining the End-to-End Mobile Network in the 5G Era (Cisco whitepaper 2019-06)
How the world changed: Cisco CEO on Rakuten's new mobile network (Rakuten.today 2019-06-26)