-
Notifications
You must be signed in to change notification settings - Fork 52
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
Future Parser Support List #86
Comments
A few more to add: |
Any updates on Huawei parser? Huawei config is a
A one-line banner:
A multi-line banner:
A sample config file:
Is this enough for you to implement it, or do you prefer a PR? Thanks! |
PR would be best, can see some hints here: https://netutils.readthedocs.io/en/latest/dev/dev_config/#new-parsers |
Thanks @itdependsnetworks. So using this simple snippet: # netutils/config/parser.py
class HuaweiVRPConfigParser(BaseSpaceConfigParser):
"""Huawei VRP implementation of ConfigParser Class."""
comment_chars: t.List[str] = ["#"]
banner_start = ["header login information"]
banner_end = '"' I got this diff output:
The banner end delimiter |
I do not know know, what is banner end meant to be? you show an output (not the original) that would make it seem like ^C is the proper end, but not really clear to me. |
Sorry, that wasn't so clear. The original command is:
The last
The last |
Probably best to ask on slack, so can be a bit more real time in convo. |
List of Parser that should be created.
The text was updated successfully, but these errors were encountered: