Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when using markup to parse non-tabular text #830

Open
daviddayong opened this issue Mar 19, 2024 · 5 comments
Open

error when using markup to parse non-tabular text #830

daviddayong opened this issue Mar 19, 2024 · 5 comments
Assignees

Comments

@daviddayong
Copy link

Support team,
I encountered error when using markup to parse non-tabular text, detailed error message show as below, and script/testbed as enclosed.
Please help to investigate and advise how to fix that. Thanks very much.

root@1c0d25084801:/pyats/mock# /pyats/bin/python parser1.py

2024-03-13 06:52:06,168: %UNICON-INFO: +++ dev1 logfile /tmp/dev1-cli-20240313T065206167.log +++

2024-03-13 06:52:06,168: %UNICON-INFO: +++ Unicon plugin linux (unicon.plugins.linux) +++

2024-03-13 06:52:06,172: %UNICON-INFO: +++ connection to spawn: ssh -l agent 10.61.73.183, id: 140667377989664 +++

2024-03-13 06:52:06,173: %UNICON-INFO: connection to dev1
agent@10.61.73.183's password:
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 6.2.0-39-generic x86_64)

221 updates can be applied immediately.
2 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

1 updates could not be installed automatically. For more details,
see /var/log/unattended-upgrades/unattended-upgrades.log
*** System restart required ***
Last login: Wed Mar 13 14:39:44 2024 from 172.17.0.2
agent@agent-virtual-machine:~$

2024-03-13 06:52:06,479: %UNICON-INFO: +++ initializing handle +++
uut.os.1===linux
Traceback (most recent call last):
File "/pyats/mock/parser1.py", line 37, in
pgfill = parsergen.oper_fill(device=uut,show_command=('ifconfig', [], {'ifname':'docker0'}),attrvalpairs=attrValPairsToCheck,
File "src/genie/parsergen/_parsergen.py", line 570, in genie.parsergen._parsergen.oper_fill.init
KeyError: 'linux'
root@1c0d25084801:/pyats/mock#
script_and_testbed.zip

@ParimiNeeraja
Copy link

Hello daviddayong,

Kindly give me some time, will check and update you.

@Neeraja1bala
Copy link

Hello @daviddayong ,

Can you please share whole output of ifconfig command.

@Neeraja1bala
Copy link

Hello @daviddayong ,

Could you please share the output of that command.

@Neeraja1bala
Copy link

Hello @daviddayong ,

Any update on this issue. Kindly let us know the update

@Neeraja1bala
Copy link

As we haven't heard back from you , we will be closing this ticket.
If you still facing this issue please feel free to reopen with output of ifconfig command.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants