02-25-2021 03:28 AM
Hi team,
how we can use NSO Python APIs (MAAPI and/or Maagic) to read custom-defined YANG extensions in the node, such as:
extension my-ext {
argument "arg1";
}
...
leaf some-leaf {
...
my-ext "arg1value";
}
Thanks in advance!
Solved! Go to Solution.
02-25-2021 10:08 AM
Hi Ram,
thanks for the answer! I found a workaround with the use of built-in tailf:meta-data extension.
Best regards,
Djordje
02-25-2021 03:47 AM
Custom extensions are ignored by NSO. They are for your own use, however you intend to do it (using your own tools).
The module 'tailf-common.yang' defines the extensions that NSO itself uses internally, and only those extensions are parsed/stored in the compiled fxs files. It is ok to have other extensions in your yang models, but they are not stored in the fxs files or exposed via any APIs.
Thanks,
Ram
02-25-2021 10:08 AM
Hi Ram,
thanks for the answer! I found a workaround with the use of built-in tailf:meta-data extension.
Best regards,
Djordje
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide