-
Notifications
You must be signed in to change notification settings - Fork 25
fetching information about ip routes #1
Comments
Hi ! It's not currently implemented, but it's really easy to add it. The code looks for parsers of /proc files in To write a parser, you just have to add a class route(ProcessFile):
def _parse(self, data):
# data is a string read from the file.
# parse it and return a python object Tell me if you need more information. And thank you for your interest. :-) |
Hi, How i can do for this ? sorry for my poor English. :( |
You can make the route item optionally a list instead of a string if you dont want to break compatibility with existing code, or you can add another class like routelist which has a list of the routes instead of a dictionary. |
thanks. I try it later. |
Hello,
Do you already have a feature to fetch information about IP routes? Can't seem to find it. I don't mind implementing it myself. Do you happen to have a sample piece of code I can use as a base?
Regards,
Alex
The text was updated successfully, but these errors were encountered: