Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Following code works outside nso python package (default) or with in same python package:
import ncs
with ncs.maapi.Maapi() as m: with ncs.maapi.Session(m, 'test', 'system'): with m.start_write_trans() as t: root = ncs.maagic .get_root(t) ...
From nso cli i can rename device name to some new name
rename devices device old_name new_name
commit no-networking
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(...
I ended up deleting 500K+ service instances at customer NSO, where they used service for turning ports up, and never visited those instances in its life cycle. Unnecessary increasing the CDB size. Your points are valid but again it depends on usecase...
I am looking something like
this NSO cli
rename devices device abc xyz
In this case we don’t need to create new device. Copy tree works fine but for that I have create new device first that I don’t want to do.
may be move is not correct method, I ...
Hi Imran,
Any reason you created port-turn as a service, you could simply create device-templates to do this job or NSO action if you really need flexibility. It might be creating unnecessary service instances in CDB you may never visit in future.
...