summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/control.py
AgeCommit message (Collapse)Author
2020-09-19ifconfig: T2653: convert VLAN interfaces do discrete classChristian Poessinger
Instead of using an Adapter pattern to make interfaces VLAN-aware, create a derived class named VLANIf to represent a VLAN. This change was necessary to eliminate mixed code in Interfaces class which was VLAN - free, but recently gained some VLAN specific code for set_admin_state(). In addition this "autoresolves" the issue in T2894 as a bond vlan interface will no longer change the lower interface.
2020-06-23validation: T2630: bound to interface mtu if availableThomas Mangin
2020-04-17util: T2226: restore/fix ifconfig debugingThomas Mangin
2020-04-13cmd: T2226: improve debuggingThomas Mangin
allow to setup the debugging from environment variables. allow to set the name of the file used for logging change the name of the debug options to be: - developer: enable pdb of raise - log: all logging messages are logged to a file - ifconfig: show on screen action peformed to change intefaces - command: print all the result of command to screen also provide a way to setup the debugging using environment variables.
2020-04-11ifconfig: T2223: rename Register to SectionThomas Mangin
While the class does indeed all the registration, it work is really to map classes to interface section. ie: interface ethernet -> EthernetIf Therefore it can also list which interface are from which type, therefore the name change. Other function name will also be renamed as a consequence
2020-04-04ifconfig: T2205: silence ethtool harmless failuresThomas Mangin
Not all interface are capable of all features. Since commands are now checked for valid completion, ethtool command failure must be ignored.
2020-03-31ifconfig: T2057: allow to disable interface debuggingThomas Mangin
In order to be able to use the interface class with operational mode, these commands must not log as it would otherwise mess with the output on the screen.
2020-03-28Merge pull request #275 from thomas-mangin/T2057-oper-adminChristian Poessinger
ifconfig: T2057: explicity name state functions
2020-03-28ifconfig: T2057: explicity name state functionsThomas Mangin
The Interface get_state/set_state were not clear about if they edited the admin or operational state. functions are now using admin_state and oper_state for clarity.
2020-03-28Merge pull request #277 from thomas-mangin/T2057-fix-forceChristian Poessinger
ifconfig: T2057: option forcing
2020-03-27ifconfig: T2057: option forcingThomas Mangin
The code was trying to not perform change when not necessary however it prevent zero value to be set
2020-03-27ifconfig: T2158: never fail when setting flowcontrolThomas Mangin
the result of the commands used to setup the interface is now checked. flowcontrol can not always be set on all interfaces, and when/if it fails, it prevents the interace to come up. This is problematic as it may prevent the router to come up. Therefore flowcontrol must be allowed to fail gracefully/silently.
2020-03-24ifconfig: T2057: add class RegisterThomas Mangin
2020-03-23tunnel: T31: add support for vrf on tunnelsThomas Mangin
2020-03-20ifconfig: T2057: fail change when command are failingThomas Mangin
2020-03-20ifconfig: T2057: data conversion was lost, better error messageThomas Mangin
2020-03-06ifconfig: T2104: splt ifconfig.py into multiple filesThomas Mangin