genielibs icon indicating copy to clipboard operation
genielibs copied to clipboard

show ip ospf neighbor detail

Open Zooarcher opened this issue 2 years ago • 4 comments

Currently I see no parser for IOS, bummer.. but there is one for the above, which melts down, on a 3560g/x

they just keep coming in, 3560g device.parse('show ip ospf neighbot') = says it has no parser device.parse('show ip ospf neighbor detail') = gives total meltdown error, Exception has occurred: InvalidCommandError Invalid command has been executed unicon.core.errors.SubCommandFailure: ('sub_command failure, patterns matched in the output:', ['^%\s*[Ii]nvalid (command|input)'], 'service result', "show running-config | section router ospf 1\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\nsomeSwitch#")

The above exception was the direct cause of the following exception:

unicon.core.errors.SubCommandFailure: ('Command execution failed', SubCommandFailure('sub_command failure, patterns matched in the output:', ['^%\s*[Ii]nvalid (command|input)'], 'service result', "show running-config | section router ospf 1\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\nnsomeSwitch#"))

The above exception was the direct cause of the following exception:

File "/home/parrot/Videos/genie/mods/test_func.py", line 68, in get_show_ip_ospf_neighbor show_ip_ospf_neighbor = device.parse('show ip ospf neighbor detail') File "/home/parrot/Videos/genie/mods/test_func.py", line 88, in test_parse show_ip_ospf_neighbor = get_show_ip_ospf_neighbor() File "/home/parrot/Videos/genie/mods/test_func.py", line 109, in test_parse(rtr_package) genie.metaparser.util.exceptions.InvalidCommandError: Invalid command has been executed

Zooarcher avatar Jan 24 '23 01:01 Zooarcher

Hi

Thanks for reporting the issue.

Could you please share the os, platform and parser command output of show ip ospf neighbor detail to debug the above issue.

Taarini avatar Feb 23 '23 20:02 Taarini

Hi

Can you please share the above details to debug

Taarini avatar Feb 24 '23 21:02 Taarini

Hi

Please provide the requested details.

Taarini avatar Feb 27 '23 18:02 Taarini

Hi, for help I think you must use iosxe instead of ios in your testbed because most of parsers are moved to iosxe and shared with iosxe since they have same commands

cherifimehdi avatar Mar 28 '24 22:03 cherifimehdi