Age | Commit message (Collapse) | Author |
|
|
|
interface: T2367: optimize flow and detriplicate add/del_addr functions
|
|
- detriplicate list appending
- detriplicate returns
- use if-elif-else
- move check if address is already added to beginning
- move caching in variable to after address assignment so a failed
assignment won't cache the address
|
|
[T2311] name servers via cmdline can't take effect
|
|
interface: T2367: code clarity
|
|
|
|
|
|
T2367: flush addresses when adding bond/bridge members
|
|
Any remaining addresses of an interface (e.g. IPv6 link-local) will be flushed
when adding a member.
A direct call to ip is necessary for interfaces not under the Interface class
(e.g. vlan vif*)
|
|
Any remaining addresses of an interface (e.g. IPv6 link-local) will be flushed
when adding a member.
A direct call to ip is necessary for interfaces not under the Interface class
(e.g. vlan vif*)
|
|
Add function that flushes all addresses from an interface.
|
|
Correctly track addresses in cache _addr variable
|
|
dictconfig: T2372: fix interfaces disable bug
|
|
off-by one line where the IP were added to the add list
and not the remove list
|
|
disable :T2372: disable sub-interface if parent is
|
|
use intf_to_dict and add_to_dict to correctly implement disable.
keeping all interface code with VLAN the same.
|
|
use intf_to_dict and add_to_dict to correctly implement disable.
keeping all interface code with VLAN the same.
|
|
use intf_to_dict and add_to_dict to correctly implement disable.
|
|
implement disable_state which looks if the current node, or some
designated parent node are set are 'disable' and thefore should
be ignored.
break down the function vlan_to_dict in it multiple components
add_to_dict which can parse vif, vif-s, or vif-c and add them
to the configuration dictionary
intf_to_dict which setup a base configuration dictionary from the
interface Config() with addresses, arp, disable, ...
it is used by vlan_to_dict but can and will be used by other interfaces
|
|
validators: numeric: T2414: improve runtime performance
|
|
$ time for i in {1..1000}; do /usr/libexec/vyos/validators/numeric --range 1-9999 666; done
real 0m56.933s
user 0m48.045s
sys 0m9.064s
$ time for i in {1..1000}; do /usr/libexec/vyos/validators/numeric--range 1-9999 666; done
real 0m44.552s
user 0m37.760s
sys 0m6.989s
This is a performance improvement of 21%, running in an ESXi VM with Quad
Intel(R) Xeon(R) CPU E5-2630L v3 @ 1.80GHz.
|
|
|
|
|
|
|
|
|
|
... no need to reinvent the wheel in our Python code.
|
|
The subnet specific nodes sip-server-address & sip-server-name do the same for
the user - specify a SIP server. Only the backend is rendered in a different
way, as ISC DHCPv6 expects different options. There is absolutely no need for
the user to distinguish between both two nodes.
|
|
|
|
Commit 2bf12b579e0 ("template: T2388: move mkdir/chmod/chown within render()")
passed an unexpected keyword to the render() function, it was simply
wrongly spelled.
|
|
tolls intact
|
|
* 'systemd-dhclient' of github.com:c-po/vyos-1x:
dhclient: T2393: remove intermediate _DHCP helper class
dhclient6: T2393: T2394: migrate from SysVinit to systemd
dhclient: T2393: migrate from SysVinit to systemd
|
|
The intermedite class only held the path to the configuration files - thus
its existence was doubtworthy. For better readability and a clean
inheritance graph that class has been dropped.
|
|
|
|
|
|
|
|
Commit d6384b2 ("powerctl: T2010: report reboot time in current timezone")
added a migrator from UTC to local timezone but reading in the base value up
for conversion was done outside the proper if/else clause leading to a:
TypeError: 'NoneType' object is not subscriptable
|
|
|
|
pppoe-server: T2391: Migrate single-session param to [common] section
|
|
template: T2388: move mkdir/chmod/chown within render()
|
|
util: T2226: multiple improvements
|
|
dhclient: T1381: Improved RFC3442 routes processing
|
|
|
|
|
|
dhcp: T2379: fix dhcp stop
|
|
|
|
debug.noteworthy can be used to record noteworhy event during
the lifetime of the program. Should anything then cause the
program to fail and cause an airbag report to the user,
then this information will also be included.
|
|
add an option to cmd() allowing to define a list of error codes
which are expected when runnin the command. the default is only
to expect zero (no error).
|
|
Do not agreggate stderr with stdout. So if a command reports
a message on stderr but does not report an error, it will
not be send to the user to confuse him.
Explicitely set encoding to utf-8, which does not change
the code behaviour but simplify the code.
|
|
* 'powerctl-t2010' of github.com:c-po/vyos-1x:
powerctl: T2010: fix "wall" complaining about inapproriate ioctl
powerctl: T2010: report reboot time in current timezone
powerctl: import less
powerctl: T2010: reformat with autopep8
|
|
wall: cannot get tty name: Inappropriate ioctl for device - script is run in the
background where there is normally no tty available - silently discard this
warning.
|