genieparser
genieparser copied to clipboard
problem with NXOS 'show running-config interface {interface}'
Hello,
Seems like NXOS 'show running-config interface {interface}' doesn't show port-channel configuration when there're port-channels with static protocol. (not lacp) For example:
interface like this:
interface Ethernet104/1/23 description TEOFWP02 PAN-ESXi MGT switchport access vlan 114 channel-group 147
is showed in parser like that:
"interface_running_config": { "interface": { "Ethernet104/1/23": { "access_vlan": "114", "description": "TEOFWP02 PAN-ESXi MGT", "switchport_mode": "access"
Seems parsing only is working good - if the interface has channel-group mode lacp defined.
Hi @from88 , thank you for reaching out.
Would you like be willing to make these changes yourself and make a contribution to the genieparser repo? A guide for writing, testing, and contributing parser can be found here https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/writeparser/writeparser.html.
or Please provide the full device output
Hi @from88,
Is there any update on this? Kindly let me know.
hello, i would like to to that, but feeling little to noob for that. Correct me if i'm wrong: but looking inside to that parser: https://pubhub.devnetcloud.com/media/genie-feature-browser/docs/#/parsers/show%2520running-config%2520interface%2520%257Binterface%257D
searching this section:
Optional (str) channel_group: {
'chg': <class 'int'>,
'mode': <class 'str'>,
},
maybe just deleting the this line 'chg': <class 'int'>
, would help? Because, i think, this was previously done with the intention that every port-channel config has mode
keyword, but as in my case it can be port-channel mode static - without any mode.
Hello @from88 ,
I fix the issue, it had been merge with upcoming latest version.
thank you, is it for 23.8 ?
Sorry for delay, it will merge in next version (23.9) . If you still facing the same issue. Kindly let me know.