summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-07-22 13:16:17 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-07-22 13:16:17 -0500
commit929f7b1713b16c72b0baab2e01dc363dc3928850 (patch)
treeaf6d4b7ddb461db9f228b66b4a210c42e982af56 /src/helpers
parentd37652e0848e4d4a3e06c544c8857aff0d728bbc (diff)
downloadvyos-1x-929f7b1713b16c72b0baab2e01dc363dc3928850.tar.gz
vyos-1x-929f7b1713b16c72b0baab2e01dc363dc3928850.zip
load-config: subclass ConfigSourceSession instead of Config
Diffstat (limited to 'src/helpers')
-rwxr-xr-xsrc/helpers/vyos-load-config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers/vyos-load-config.py b/src/helpers/vyos-load-config.py
index a9fa15778..c2da1bb11 100755
--- a/src/helpers/vyos-load-config.py
+++ b/src/helpers/vyos-load-config.py
@@ -27,12 +27,12 @@ import sys
import tempfile
import vyos.defaults
import vyos.remote
-from vyos.config import Config, VyOSError
+from vyos.configsource import ConfigSourceSession, VyOSError
from vyos.migrator import Migrator, VirtualMigrator, MigratorError
-class LoadConfig(Config):
+class LoadConfig(ConfigSourceSession):
"""A subclass for calling 'loadFile'.
- This does not belong in config.py, and only has a single caller.
+ This does not belong in configsource.py, and only has a single caller.
"""
def load_config(self, path):
return self._run(['/bin/cli-shell-api','loadFile',path])