CiscoTestAutomation / genieparser

sub-component of Genie that parse the device output into structured datastructure
Apache License 2.0
246 stars 384 forks source link

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

Open from88 opened 1 year ago

from88 commented 1 year ago

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.

ParimiNeeraja commented 1 year ago

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 commented 1 year ago

Hi @from88,

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

from88 commented 1 year ago

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.

ParimiNeeraja commented 1 year ago

Hello @from88 ,

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

from88 commented 1 year ago

thank you, is it for 23.8 ?

ParimiNeeraja commented 11 months ago

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