Age | Commit message (Collapse) | Author |
|
Expand the matching done in is_primary_address to account for the fact
that the output from "ip address show" is different for vtun and wan
interfaces; add a separate check for these interfaces.
Bug #488 http://bugzilla.vyos.net/show_bug.cgi?id=488
|
|
Expand the matching done in get_ipaddr_int_hash to account for the
fact that the output from "ip addr show" is different for vtun and wan
interfaces; add a separate check for these interfaces.
Bug #35 http://bugzilla.vyos.net/show_bug.cgi?id=35
|
|
When OpenVPN tunnels are taken down and recreated by the OpenVPN
process, any previously set descriptions on the interfaces are missing.
This is caused by the fact that the ifalias for that interface isn't
readded when the interface is recreated.
This patch updates the interface_description function so that it either
returns the current value of ifalias if it's set on the interface, or
uses the value set in the active config if it's present.
Bug #7 http://bugzilla.vyos.net/show_bug.cgi?id=7
Bug #313 http://bugzilla.vyos.net/show_bug.cgi?id=313
|
|
Update lib/Vyatta/Misc.pm to have consistent identation levels and
style throughout.
|
|
Also squelch warnings from requiring features.ph (via ioctl.ph).
Fixes bug 8387
|
|
Use indent of 4
|
|
perl only allows a require to be done once. If it is done in two
included modules the module or function in the module used second
doesn't have the data in the required file in its scope. To prevent
this I created a third module that contains the functions that require
'sys/ioctl.ph' so that there is no longer a conflict.
|
|
|
|
for validating ports entered
|
|
* use shorter /config path when presenting configuration directory to users
|
|
assigned to interfaces
|
|
Bug 6590
The code to check for local address has to be smarter
to handle IPv6. Introduces dependency on Socket6 module.
|
|
|
|
|
|
Vyatta::Misc
|
|
|
|
Commonly needed routine to check if IP address is local.
|
|
|
|
|
|
Rather than hiding ifb inside QoS, changing to make it
a really useful device.
|
|
IFB is a pseudo-device used for incoming traffic shaping.
Hide it from show queueing output.
|
|
The Interface() object doesn't work for PPP in operational mode.
So split out interface_description routine.
|
|
|
|
|
|
If perl function falls off the end, it will return the
result of the last expression. For these functions, the idea
was to return a false value; and it the return was missing.
|
|
* use new API to get active 'original + commited' values
* split 'dns forwarding' and 'dns dynamic' into different priorities
|
|
Hostapd creates mon.wlanX interfaces which are not something
we need to make visible.
|
|
Ignore the bogus wmaster interface
|
|
|
|
drops all interfaces.
Only use substring if necessary.
(cherry picked from commit abfbae9c05c6c7b4bccb2255d91a32ef1bccd1c1)
|
|
Only have one interface for getting addresses.
|
|
Remove duplicates from list, and make sure getIP is exported, and that
explicit imports are listed.
|
|
|
|
The modules are not perl executables, they are modules.
Fixes lintian warning
|
|
|
|
|
|
Bonding leaves this file in /sys/class/net that confuses scripts.
|
|
|
|
getInterfacesIPadresses('all') doesn't include them. Include loopback addresses.
|
|
|
|
Fix $mask usagage in getInterfacesIPadresses().
|
|
Eliminate warnings about 2 arg open, and non stricture.
|
|
fix bug in conversion to Vyatta::Interface by rewriting/refactoring.
|
|
Handle requests for interfaces of a specific type
|
|
Only get address once, and don't call new() directly, use in OO style.
|
|
This routine is used by DHCP server and needs to ignore IPV6
addresses.
NB: Does not fix bogus spellung.
|
|
Use new Vyatta::Interface and sysfs to avoid using ifconfig
and ip command unnecessarily.
|
|
Unify all code that does name -> interface attribute translation
into one place. No need to pass interface path to scripts, and handle
addresses correctly in DHCP code. Use 'undef' consitently for false
in perl code.
|
|
Use regex to identify legal IPV4 address, and get rid of perlcrtic
warnings.
|
|
Rather than reading /etc/services directly, use the standard
getservbyname function. This should be more efficient (uses dbm),
and will work with other nameservices
|