diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-07-20 21:45:24 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-07-25 15:36:07 +0200 |
commit | c9ba8952ad7c373d633516933ddb97e178e339c8 (patch) | |
tree | 457c22cda4cb48673393ec9457cdb49a6b0093ea /src/conf_mode/interfaces-pseudo-ethernet.py | |
parent | c8cd7951e38ae2819d4c9f87089fcf59b7e6b70d (diff) | |
download | vyos-1x-c9ba8952ad7c373d633516933ddb97e178e339c8.tar.gz vyos-1x-c9ba8952ad7c373d633516933ddb97e178e339c8.zip |
interfaces: ifconfig: T2653: migrate to get_interface_dict() API
After switching from raw parsing of the interface options to get_config_dict()
this utilizes another utility function which wraps get_config_dict() and adds
other common and reused parameters (like deleted or bridge member).
Overall this drops redundant code (again) and makes the rest more maintainable
as we only utilize a single function.
Diffstat (limited to 'src/conf_mode/interfaces-pseudo-ethernet.py')
-rwxr-xr-x | src/conf_mode/interfaces-pseudo-ethernet.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-pseudo-ethernet.py b/src/conf_mode/interfaces-pseudo-ethernet.py index cce9b020b..55f11e65e 100755 --- a/src/conf_mode/interfaces-pseudo-ethernet.py +++ b/src/conf_mode/interfaces-pseudo-ethernet.py @@ -52,8 +52,6 @@ def get_config(): if mode: peth.update({'mode_old' : mode}) - import pprint - pprint.pprint(peth) return peth def verify(peth): |