logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::Route::Parser - Internal class

Author

       Created by Alexandre Storoz, "<astoroz@straton-it.fr>"

       Maintained by Thomas Equeter, "<tequeter@straton-it.fr>"

Description

       This is a base class for the system-specific parsers. It is not usable directly (abstract).

       System-specific parsers should inherit from this class to obtain common functionality.

Interface

       This interface is subject to change until version 1.

   ObjectMethodsfrom_system()

       Implementation of "Net::Route::Table::from_system()".

       command_line()[purevirtual]

       What you want to read the information from, as either:

       •   a string - it will undergo shell expansion

       •   an arrayref - the command and its arguments, without shell expansion

       Implement this in subclasses.

       parse_routes($text_lines_ref)[purevirtual]

       Reads and parses the routes from the output of the command, returns an arrayref of Net::Route objects.

       create_ip_object($address,$mask)

       Factory  of NetAddr::IP objects for centralized error management. Dies if the arguments do not constitute
       a valid IP or network address.

Name

       Net::Route::Parser - Internal class

Synopsis

       Not used directly.

Version

       Revision $Revision: 363 $.

See Also