summaryrefslogtreecommitdiff
path: root/routers
AgeCommit message (Collapse)Author
2016-08-25Ensure default values are set.Guillaume Mazoyer
2016-06-13Fix hostname_to_ip_address.Guillaume Mazoyer
Get only AAAA or A record based on the router config if provided.
2016-06-13Per router options to disable/enable IP versions.Guillaume Mazoyer
Remove the global options to disable/enable IPv6 or IPv4. These options can now be used on the router configuration level, which seems more appropriate.
2016-06-13Catch use of disable IP version before instanciating the router object.Guillaume Mazoyer
Simplify the code and avoid unneeded computation.
2016-06-12Add new configuration options to enable/disable IPv6 or IPv4.Guillaume Mazoyer
When disabling IPv6 or IPv4, the looking glass will not try to use both IP protocol versions when looking for an AS routes or when pinging or tracerouting. If an IP address of a disabling IP version is used, the user will have an error in return of its command. This error will tell him that the IP version he is trying to use is disabled. Please note that when trying to ping or traceroute a hostname from a Cisco or a Juniper device, this looking glass will not prevent the device to use a disabled IP version when executing its command. This commit also contains some small changes with HTML tags.
2016-05-21No big deal.Guillaume Mazoyer
2016-05-20Everybody wants IPv6 first right?Guillaume Mazoyer
2015-07-23Rework hostname parameter check.Guillaume Mazoyer
Rename FQDN to hostname which seems more appropriate. Refactor match_fqdn / match_hostname function to use a more accurate way of checking a potential hostname.
2015-07-17Add config variables to change ping and traceroute options.Guillaume Mazoyer
With ping only the options can be changed to match what the user wants. With traceroute the options and the binary can be changed (some people prefer to use mtr instead of traceroute). Please refer to the documentation to see how it works.
2015-06-16Remove forgotten 's' while change variable name.Guillaume Mazoyer
2015-06-16Remove forgotten 's' while change variable name.Guillaume Mazoyer
2015-02-10Update GPL headers according to yesterday updates.Guillaume Mazoyer
2015-02-09Fix confusing variable name.Guillaume Mazoyer
There is only one parameter to check so rename the confusing 'parameters' variable name to 'parameter' accross all the code base.
2015-01-05Update copyrights on files changed since 2015-01-01.Guillaume Mazoyer
2015-01-04Cosmetic () for print instruction.Guillaume Mazoyer
2014-12-13Option to hide commands.Guillaume Mazoyer
Set $config\['output'\]\['show_command'\] to true or false to show or hide the command in the output. Also fix ping/traceroute without FQDN on BIRD, Quagga and Cisco.
2014-12-13Not sure why I removed 'ipv6'.Guillaume Mazoyer
2014-12-13Fix for Cisco routers, no source for traceroute in IPv6, really?Guillaume Mazoyer
2014-12-13Typo fix.Guillaume Mazoyer
2014-12-13Fix traceroute for Cisco when using 'source'.Guillaume Mazoyer
On Cisco, when using traceroute 'source' option with a FQDN, you need to explicitly specify if you want an IPv4 or an IPv6 traceroute. To fix this we try to resolve the given FQDN and then pass the IPv4 or IPv6 address instead of the FQDN Also make sure that the FQDN is used in the issued command. Do not use the resolved IP anymore.
2014-12-12Improve 'source-interface-id' option.Guillaume Mazoyer
On software router, an IPv4 and IPv6 addresses need to be specified. Not specifying one of them or both will result in the router trying to use the best address to contact the destination. This fix the bug where software routers could not ping or traceroute IPv6 destination with only a IPv4 source address (obviously).
2014-12-10Add option to specify an interface or an address for routers.Guillaume Mazoyer
The interface is used on routers to source ping and traceroute. On software routers, an address is required instead of the interface.
2014-11-17Code format. Always use () for functions.Guillaume Mazoyer
2014-09-24Log format can be configured.Guillaume Mazoyer
The format for each log can be configured with the configuration option defined by $config['logs']['format']. %D is for the time, %R is for the requester IP address, %H is for the host on which the command has been executed and %C is for the command. Warning! The configuration option to choose the logs file has been moved from $config['misc']['logs'] to $config['logs']['file'].
2014-09-24Externalize output formatter to a dedicated function.Guillaume Mazoyer
The dedicated function 'format_output(command, output)' can be redefined by router and can be used to format the output according to what is inside. In this way, the output can be formatted differently according to the router type and the command.
2014-09-10Fixing show route AS behaviour on Juniper platformsBenjamin Collet
2014-09-08Remove useless condition.Guillaume Mazoyer
2014-09-08Improve output filters.Guillaume Mazoyer
Fix filters that could lead to filtered HTML output. Do not remove empty lines anymore, except for the last line. Do not try to loop over each line of the output if no filter are defined.
2014-09-03Add config to disallow the use of private and reserved IP ranges.Guillaume Mazoyer
2014-08-26Remove command in label to use kbd (not a proper use of label).Guillaume Mazoyer
2014-08-06Add ping/traceroute for FQDN on BIRD and Quagga.Guillaume Mazoyer
Basically this can work with all Linux boxes. It gets A and AAAA records from DNS and decide if it can uses IPv6 or IPv4 to ping or to traceroute. IPv6 is always preferred of course.
2014-08-06fixing FQDN input for ciscoRomain Boissat rboissat
2014-08-05Add config.defaults.php to set default configuration options.Guillaume Mazoyer
The defaults can be overriden in the config.php file but some of them are fine as defaults. This will help in having a config.php file as short as we can. Also move utils.php to the includes directory.
2014-08-05Don't hardcode BIRD binaries paths.Guillaume Mazoyer
2014-08-05I need some sleep :|Guillaume Mazoyer
2014-08-05Add a way to validate strict IP address (no mask).Guillaume Mazoyer
2014-08-04adding Quagga support and fixing Cisco commandsRomain Boissat rboissat
2014-08-04Split IPv4 and IPv6 results.Guillaume Mazoyer
Show the executed command for each output.
2014-08-04Fix ping for Cisco.Guillaume Mazoyer
2014-08-03Be sure to login and disconnect after each command.Guillaume Mazoyer
2014-06-20Fix BIRD commands again.Guillaume Mazoyer
2014-06-20Remove useless code.Guillaume Mazoyer
Fix undefined variable. Fix BIRD commands.
2014-06-20Basic support for BIRD based routers.Guillaume Mazoyer
2014-06-14Remove useless code.Guillaume Mazoyer
2014-06-14Add preliminary support for Cisco routers.Guillaume Mazoyer
Need to be tested.
2014-06-13Forgot to put commands in array for ping and traceroute.Guillaume Mazoyer
2014-06-13Use quoted aspath-regex for Juniper.Guillaume Mazoyer
2014-06-13No more 'no-more' for Juniper.Guillaume Mazoyer
2014-06-13Support for request that need multiple commands for a proper output.Guillaume Mazoyer
More accurate commands for Juniper router.
2014-06-13Ensure that specified ports are actually integers.Guillaume Mazoyer