---
name: "Net::Route::Parser"
section: "3pm"
platform: "linux"
package: "libnet-route-perl"
version: "0.02-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::Route::Parser"
---

# Net::Route::Parser(3pm)

Internal class

## NAME

Net::Route::Parser - Internal class

## SYNOPSIS

Not used directly.

## VERSION

Revision `$Revision:` 363 $.

## 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.

### Object Methods

***from\_system()***

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

***command\_line()*** *\[pure virtual\]*

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 ) \[pure virtual\]*

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.

## AUTHOR

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

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

## LICENSE AND COPYRIGHT

Copyright (C) 2009 Straton IT.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
