genieparser icon indicating copy to clipboard operation
genieparser copied to clipboard

problem with NXOS 'show running-config interface {interface}'

Open edvinaskairys opened this issue 1 year ago • 6 comments

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.

edvinaskairys avatar Jun 12 '23 14:06 edvinaskairys

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

ParimiNeeraja avatar Aug 04 '23 05:08 ParimiNeeraja

Hi @from88,

Is there any update on this? Kindly let me know.

ParimiNeeraja avatar Aug 07 '23 06:08 ParimiNeeraja

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.

edvinaskairys avatar Aug 11 '23 12:08 edvinaskairys

Hello @from88 ,

I fix the issue, it had been merge with upcoming latest version.

ParimiNeeraja avatar Aug 14 '23 09:08 ParimiNeeraja

thank you, is it for 23.8 ?

edvinaskairys avatar Aug 22 '23 11:08 edvinaskairys

Sorry for delay, it will merge in next version (23.9) . If you still facing the same issue. Kindly let me know.

ParimiNeeraja avatar Sep 15 '23 10:09 ParimiNeeraja