Hi,
I get zero arguments when using a custom python-vm startup script. This leads to the failure of VM initialization because startup.py doesn't get the required arguments (-l -f -i).
Is this some expected behavior or I missed something?
Thanks.
ncs....
with ncs.maapi.single_read_trans("admin", "python") as t:
path = ncs.maagic.get_node(t, kp)
id = path._parent.id. # depends on your model
You may get a service or action path and navigate from it. In my example, one step up to 'id' leaf.
Python library netaddr can help with the summarization.
https://netaddr.readthedocs.io/en/latest/tutorial_01.html#summarizing-list-of-addresses-and-subnets
https://github.com/drkjam/netaddr