Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Adding support for vyatta/vyos/edgerouter.
|
|
|
|
|
|
|
|
IOS-XR needs the count argument instead of repeat.
|
|
|
|
Some of the changes might be inaccurate. They have only been tested against
the demo version of a Cisco IOS XRv. Any feedback about real world IOS XR
testing will be appreciated.
|
|
|
|
Get only AAAA or A record based on the router config if provided.
|
|
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.
|
|
Simplify the code and avoid unneeded computation.
|
|
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.
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
|
|
|
|
There is only one parameter to check so rename the confusing
'parameters' variable name to 'parameter' accross all the code base.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
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).
|
|
The interface is used on routers to source ping and traceroute.
On software routers, an address is required instead of the interface.
|
|
|
|
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'].
|
|
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.
|
|
|
|
|
|
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.
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Show the executed command for each output.
|
|
|
|
|