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

Ifcfg constructor fails when interface has empty angular brackers. #14

Open
Rahul-RB opened this issue Feb 1, 2019 · 2 comments
Open

Comments

@Rahul-RB
Copy link

Rahul-RB commented Feb 1, 2019

I have the following interface in my ifconfig:
enc0: flags=0<> metric 0 mtu 1536

The constructor call fails:
ifdata = Ifcfg(commands.getoutput('ifconfig -a'))
as:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.freebsd-8.4-RELEASE-amd64/egg/ifparser/ifconfig.py", line 106, in __init__
  File "build/bdist.freebsd-8.4-RELEASE-amd64/egg/ifparser/ifconfig.py", line 116, in _process
ifparser.ifconfig.ParseError: 'enc0: flags=0<> metric 0 mtu 1536'
@sanketsudake
Copy link
Owner

@Rahul-RB Would be possible for you to capture ifconfig output in txt file attach here with gist or pastebin ?

@Rahul-RB
Copy link
Author

Rahul-RB commented Feb 1, 2019

Sure.
Here's a gist. Also attached is a text file having the same output.

op.txt

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

No branches or pull requests

2 participants