>>> from vyos.xml import defaults >>> import pprint >>> pprint.pprint(defaults(['interfaces', 'ethernet'])) {'duplex': 'auto', 'ip': {'arp_cache_timeout': '30'}, 'mtu': '1500', 'speed': 'auto', 'vif': {'ip': {'arp_cache_timeout': '30'}, 'mtu': '1500'}, 'vif_s': {'mtu': '1500', 'vif_c': {'mtu': '1500'}}}
Should we also get the defaults on a tag node? as ip and mtu keys should rather be the default of the tag element.