summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-17tunnel: T2028: check for tunnel creationThomas Mangin
check that we are able to create tunnel for all encapsulation supported in interfaces tunnel.
2020-02-17snmp: clean out current configuration in setUp()Christian Poessinger
2020-02-17snmp: get_config_value() should return str not listChristian Poessinger
2020-02-17ssh: clean out current configuration in setUp()Christian Poessinger
2020-02-17ssh: add test for disable-password-authenticationChristian Poessinger
2020-02-17ssh: get_config_value() should return str not listChristian Poessinger
2020-02-17ethernet: generic tearDown() should not destroy ethernet CLI nodesChristian Poessinger
2020-02-17bridge: disable MTU test as it can not be configuredChristian Poessinger
2020-02-17bridge: automatically detect available interfacesChristian Poessinger
2020-02-17ethernet: automatically detect available interfacesChristian Poessinger
2020-02-17interfaces: add generic MTU test which can be enabled per interfaceChristian Poessinger
2020-02-17Makefile: add "make deb" targetThomas Mangin
adding an option to the Makefile to build the debian package
2020-02-17gitignore: initial versionChristian Poessinger
2020-02-17ethernet: add initial interface testChristian Poessinger
2020-02-17interfaces: split interface tests into individual filesChristian Poessinger
2020-02-17wireless: T2048: fix wrong verify() logic when type is monitorChristian Poessinger
2020-02-16ddns: read back configuration file and check plausibilityChristian Poessinger
2020-02-16ddns: add initial unittestChristian Poessinger
2020-02-16ddclient: proper use conf.set_level() to reduce boiler plate codeChristian Poessinger
2020-02-16ddclient: change file permission on generated configChristian Poessinger
ddclient complains when the file permission is not user = rw.
2020-02-16ifconfig: bond: T2043: T2030: fix wrong call to os.listdir()Christian Poessinger
2020-02-16gitignore: extend ignore pattern of temporary debhelper filesChristian Poessinger
2020-02-16bond: T2030: fix incorrect delta calculation on member interfacesChristian Poessinger
THe delta check/calculation always returned False on system startup leading to a non functioning bond interface after a reboot as no physical interface actually enslaved. This was fixed by not calculating the current enslaved interfaces from the existing config but rather retrieving the interfaces from sysfs.
2020-02-15interface: bond: check that only real interfaces can be enslavedChristian Poessinger
2020-02-15interface: bond: remove useless for loop on member removalChristian Poessinger
2020-02-15bond: T2041: add missing consitency check on member interface existenceChristian Poessinger
2020-02-15gitignore: add termporary directory for vyos-1x debian packageChristian Poessinger
2020-02-15snmp: T2042: stricter validation when deleting SNMP in combination with LLDPChristian Poessinger
A consistency check was missing to prevent deleting the SNMP configuration but still setting "service lldp snmp enable".
2020-02-14http api: T2040: reload Config in route definitionJohn Estabrook
2020-02-14ifconfig: T2034: remove obsolete commentChristian Poessinger
2020-02-14T2034: Disallow removal of default loopback addressesRunar Borge
The removal of interfaces loopback lo results in all address being removed from the loopback interface. (also not cli controlled addresses) In this process 127.0.0.1/8 and ::1/128 are also removed witch results in error for services that are dependent on these adresses, this includes eg. snmp and ssh Removal of these addresses needs to be disallowed by the config backend and removal of the whole config block interfaces loopback lo needs to result in removal of all non-default addresses only.
2020-02-13op-mode: T2032: "monitor bandwidth interface" shows rate in bpsViacheslav Hletenko
2020-02-13systemd: T2033: add overrides for keepalivedChristian Poessinger
Without this override the keepalived stop transaction script won't work as systemd will just wipe the process.
2020-02-13Debian: add missing dependency on isc-dhcp-clientChristian Poessinger
Commit e39f2ea ("dhclient-script: T1987: Multiple fixes in dhclient-script") added the dhclient script but it missed the dependency.
2020-02-13Merge pull request #218 from zdc/T1987Christian Poessinger
dhclient-script: T1987: Multiple fixes in dhclient-script
2020-02-13macvlan: T1635: remove node.def files until vyatta-cfg-quagga is migratedChristian Poessinger
2020-02-13macvlan: T1635: migrate pseudo-ethernet interface definition to XML/PythonChristian Poessinger
2020-02-13ddclient: T1908: CloudFlares zone option can now also be specified manuallyChristian Poessinger
If there is no zone option given it will be "guessed" as in the past. This means (hostname -> resulting zone entry) domain.com -> com foo.domain.com -> domain.com bar.foo.domain.com -> foo.domain.com I have zero experience in the CloudFlare zone option what it is and what it does. SO maybe we still have a chance to auto render this setting.
2020-02-12dhclient-script: T1987: Multiple fixes in dhclient-scriptzsdc
This changeset contains multiple changes in structure, logic, and bugfixes for dhclient-script. It should provide better compatibility with new Debian versions and flexibility in controlling and changing VyOS-related functions. 1. Structure change: * All VyOS-related functionality was moved from dhclient-script itself to separated hook files. * Old vyatta-dhclient-hook was moved from vyatta-cfg to vyos-1x. * This change allows discard dhclient-script replacing and use the original one from Debian without any changes. So, we do not need to track all changes in upstream so carefully. * To provide compatibility between original dhclient-script and VyOS, two internal commands/functions are repaced in hooks: ip and make_resolv_conf. So, in all places where used ${ip} or make_resolv_conf, actually using VyOS-tuned functions instead original. * `ip` function is a wrapper, which automatically chooses what to use: transparently pass a command to /usr/sbin/ip, change a route in kernel table or FRRouting config via vtysh. * `make_resolv_conf` function main logic was copied from current VyOS implementation and use vyos-hostsd-client for making changes 2. Added: * Logging. Now is possible to log all changes, what is doing by dhclient-script. Logs can be saved to the journal and displayed in stderr (for debugging purposes). By default, logging to the journal is enabled (at least for some time) to provide a way to collect enough information in case if some bug in this new implementation will be found. This can be changed in the 01-vyos-logging file. 3. Fixed/Changed: * If DHCP lease was expired, released or dhclient was stopped, dhclient-script will try to delete default route from this lease. * Instead of blindly killing all dhclients in case if FRRouting daemon is not running, now used more intelligent logic: * dhclients are stopping natively (with all triggers processing), instead of killing; * dhclient-script will not kill parent dhclient process. This allows to fix the problem when systemd inform about failing to rise up interfaces at early boot stages (used in Cloud-init images); * dhclient-script will not touch dhclients, which are not related to the current interface or IP protocol version. * For getting FRRouting daemon status used native way via watchfrr.sh, instead of the previous trick with vtysh accessibility. * before adding a new route to FRRouting configuration, this route will be deleted from the kernel (if it is presented there). This allows to properly replace routes, added at early boot stages, when FRR not available. * Routes in FRRouting are adding with "tag 210". This allows protecting static routes, added via CLI, from deletion when old routes are deleting by DHCP. * DNS servers will be reconfigured only when $new_domain_name_servers are not the same as $old_domain_name_servers. Previously, this was done during each RENEW procedure. * Replacing MTU for preconfigured one was changed to Python (via vyos.config). The previous version with vyatta-interfaces.pl was obsoleted and seems to be broken.
2020-02-11Merge pull request #215 from thomas-mangin/patch-1Daniil Baturin
"make deb" to build the debian package
2020-02-10"make deb" to build the debian packageThomas Mangin
Adding an option to make to build the debian package
2020-02-10banner: T2024: remove additional newline when resotring default motdChristian Poessinger
2020-02-10Revert "snmp: output expected value on error"Christian Poessinger
This reverts commit bcc0b5bd6e11a9fbc2fcb3c450fdb48bb85499e8.
2020-02-10banner: T2024: fix type on pre-login nodeChristian Poessinger
2020-02-10banner: T2024: migrate "system login banner" to XML/Python representationChristian Poessinger
2020-02-10service https: T1585: add missing check in verify()John Estabrook
2020-02-09ssh: add test for proper port and host validationChristian Poessinger
2020-02-09ssh: add missing commit()Christian Poessinger
2020-02-09snmp: T1931: instead of searching a pseudo marker find real marker in configChristian Poessinger
As we need to operate with usmUser, we can search for it directly if its present or not. There is always one usmUser entry for the system user.
2020-02-09login: fix typo in tearDown()Christian Poessinger