diff options
author | John Estabrook <jestabro@vyos.io> | 2021-12-08 13:29:46 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-12-08 13:30:38 -0600 |
commit | e6b1c1f572068535ea99ee39a2d66bd6bf7043d5 (patch) | |
tree | 13730bb126a5ead223620b879cfd354509001ecf /src/helpers/vyos_net_name | |
parent | bcfe967f607a83192d75c01e7f414655891eec60 (diff) | |
download | vyos-1x-e6b1c1f572068535ea99ee39a2d66bd6bf7043d5.tar.gz vyos-1x-e6b1c1f572068535ea99ee39a2d66bd6bf7043d5.zip |
vyos.util: T4061: add function to check for completion of boot config
Diffstat (limited to 'src/helpers/vyos_net_name')
-rwxr-xr-x | src/helpers/vyos_net_name | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/helpers/vyos_net_name b/src/helpers/vyos_net_name index e21d8c9ff..afeef8f2d 100755 --- a/src/helpers/vyos_net_name +++ b/src/helpers/vyos_net_name @@ -25,14 +25,13 @@ from sys import argv from vyos.configtree import ConfigTree from vyos.defaults import directories -from vyos.util import cmd +from vyos.util import cmd, boot_configuration_complete vyos_udev_dir = directories['vyos_udev_dir'] vyos_log_dir = '/run/udev/log' vyos_log_file = os.path.join(vyos_log_dir, 'vyos-net-name') config_path = '/opt/vyatta/etc/config/config.boot' -config_status = '/tmp/vyos-config-status' lock = threading.Lock() @@ -43,13 +42,6 @@ except FileExistsError: logging.basicConfig(filename=vyos_log_file, level=logging.DEBUG) -def boot_configuration_complete() -> bool: - """ Check if vyos-router has completed, hence hotplug event - """ - if os.path.isfile(config_status): - return True - return False - def is_available(intfs: dict, intf_name: str) -> bool: """ Check if interface name is already assigned """ |