array (
// CSS to use
'css' => 'css/style.css',
// Display the title
'show_title' => true,
// Show visitor IP address
'show_visitor_ip' => true,
// Frontpage order you can use: routers, commands, parameters, buttons
'order' => array('routers', 'commands', 'parameters', 'buttons')
),
// Misc
'misc' => array(
// Logs file when commands will be written
'logs' => '/var/log/looking-glass.log',
// Allow private ASN
'allow_private_asn' => false
),
// Documentation (must be HTML)
'doc' => array (
// Documentation for the 'show route' query
'bgp' => array(
'query' => 'Show the best routes to a given destination.',
'parameter' => 'The parameter must be a valid destination. Destination means an IPv4/IPv6 address or a subnet. Masks are also accepted as part of a valid IPv4/IPv6 address.
Please note that some routers always need a mask to be given when looking for an IPv6 address.
Example of valid arguments:
- 10.1.1.1
- 172.16.0.0/12
- 2001:db8:1337::42
- 2001:db8::/32
'
),
// Documentation for the 'as-path-regex' query
'as-path-regex' => array(
'query' => 'Show the routes matching the given AS path regular expression.',
'parameter' => 'The parameter must be a valid AS path regular expression.
Please note that these expression can change depending on the router and its software.
Here are some examples:- Juniper - ^AS1 AS2 .*$
- Cisco - ^AS1_
- BIRD - AS1 AS2 AS3 … ASZ
You may find some help with the following link:
'
),
// Documentation for the 'as' query
'as' => array(
'query' => 'Show the routes received from a given AS number.',
'parameter' => 'The parameter must be a valid 16-bit or 32-bit autonomous system number.
Be careful, 32-bit ASN are not handled by old routers or old router softwares.
Unless specified, private ASN will be considered as invalid.
Example of valid argument:
'
),
// Documentation for the 'ping' query
'ping' => array(
'query' => 'Send 10 pings to the given destination.',
'parameter' => 'The parameter must be an IPv4/IPv6 address (without mask) or a fully qualified domain name.
Example of valid arguments:
- 10.1.1.1
- 2001:db8:1337::42
- example.com
'
),
// Documentation for the 'traceroute' query
'traceroute' => array(
'query' => 'Display the path to a given destination.',
'parameter' => 'The parameter must be an IPv4/IPv6 address (without mask) or a fully qualified domain name.
Example of valid arguments:
- 10.1.1.1
- 2001:db8:1337::42
- example.com
'
)
)
);
// End of config.defaults..php