summaryrefslogtreecommitdiff
path: root/scripts/vyatta-load-config.pl
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-14 18:14:47 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-14 18:14:47 -0800
commit784d147f611929787844c87f4e0428bb6a0b5708 (patch)
treea50bc7884b877fd6af90bfc30ee63d32bafe1dd4 /scripts/vyatta-load-config.pl
parent027fe0f526742e30d17835a62c271e9c1fc40f97 (diff)
downloadvyatta-cfg-784d147f611929787844c87f4e0428bb6a0b5708.tar.gz
vyatta-cfg-784d147f611929787844c87f4e0428bb6a0b5708.zip
do config migration when loading a config file
Diffstat (limited to 'scripts/vyatta-load-config.pl')
-rwxr-xr-xscripts/vyatta-load-config.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vyatta-load-config.pl b/scripts/vyatta-load-config.pl
index d011a65..be3c751 100755
--- a/scripts/vyatta-load-config.pl
+++ b/scripts/vyatta-load-config.pl
@@ -21,6 +21,9 @@ if (!($load_file =~ /^\//)) {
$load_file = "$bootpath/$load_file";
}
+# do config migration
+system("$sbindir/vyatta_config_migrate.pl $load_file");
+
print "Loading config file $load_file...\n";
my %cfg_hier = VyattaConfigLoad::loadConfigHierarchy($load_file);
if (scalar(keys %cfg_hier) == 0) {