Hello,
I can get the value of description on device interface using python maapi as below:
import ncs.maapi as maapi
with ncs.maapi.single_read_trans('admin', 'system', db=ncs.OPERATIONAL) as m:
root = ncs.maagic.get_root(m)
print(root.devices.device['mydevice'].config.ios__interface.GigabitEthernet['1'].description)
my_interface_desc
Instead of getting a single value, can I get the output of all configuration below the interface (e.g. description, ip address, negotiation, ...) using python maapi, something like:
root.ncs__devices.device['mydevice'].config.ios__interface.GigabitEthernet['1'].?