Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-07-25 | ethernet: ifconfig: T2653: move to get_config_dict() | Christian Poessinger | |
The current VyOS CLI parser code written in Python contains a ton of duplicates which I can also hold myself accountable for - or maybe mainly me - depends on the angle of judge. While providing a new update() method in vyos.ifconfig.interfaces() this is extended for ethernet based interfaces which also supports 802.1q, 802.1ad VLANs. This commit migrates the existing codebase for an ethernet based interfaces and implements the missing parts for VLANs. Adding or migrating other interfaces (e.g. bridge or bond) will become much easier as they must reuse the entire functionality - we now walk towards a single codepath. Thanks for all who made this combined effort possible! Signed-off-by: Christian Poessinger <christian@poessinger.com> | |||
2020-07-01 | ifconfig: T2653: use better names for vyos.configverify functions | Christian Poessinger | |
2020-07-01 | ifconfig: T2653: move pppoe interface to get_config_dict() | Christian Poessinger | |
2020-06-27 | ifconfig: T2653: add vyos.configverify.verify_source_interface() helper | Christian Poessinger | |
2020-06-26 | ifconfig: T2653: add common vyos.configverify helpers | Christian Poessinger | |
While moving towards a general interface abstraction based on get_config_dict() and the use of vyos.ifconfig.Interfaces().update() it also makes sense, to split out common verification code to a common util file - instead of duplicating the code, which is infact one of the main forces drivind this transition. vyos.configverify will hold common functions called via verify() from our src/conf_mode scripts so we do not need to copy/paste general verifications methods. |