summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-05-08 17:48:05 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-05-08 17:48:05 -0700
commit07d3641ca62cfede93708d366bb3e5410feba519 (patch)
treec356d9a53b58f512fbc69bab1118525a593cfcad /scripts
parentb65a77546b27e79eda8ef016f8e2597ea403c3ca (diff)
downloadvyatta-cfg-07d3641ca62cfede93708d366bb3e5410feba519.tar.gz
vyatta-cfg-07d3641ca62cfede93708d366bb3e5410feba519.zip
Add more granularity to config rank (commit rip, ospf, bgp separately).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/VyattaConfigLoad.pm14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/VyattaConfigLoad.pm b/scripts/VyattaConfigLoad.pm
index b69723a..a5c5b08 100755
--- a/scripts/VyattaConfigLoad.pm
+++ b/scripts/VyattaConfigLoad.pm
@@ -23,7 +23,7 @@ package VyattaConfigLoad;
use strict;
use sort 'stable';
use lib "/opt/vyatta/share/perl5/";
-use XorpConfigParser;
+use XorpConfigParser;
use VyattaConfig;
# configuration ordering. higher rank configured before lower rank.
@@ -36,16 +36,22 @@ my %config_rank = (
'interfaces bridge' => 99,
'interfaces ethernet' => 98,
'interfaces tunnel' => 91,
- 'system' => 90,
+ 'system gateway-address'=> 89,
+ 'system name-server' => 88,
+ 'system login user' => 87,
+ 'system' => 86,
'protocols static' => 85,
'service ssh' => 84,
'service telnet' => 83,
'policy' => 82,
- 'vpn' => 80,
+ 'protocols bgp' => 79,
+ 'protocols ospf' => 78,
+ 'protocols rip' => 77,
+ 'vpn' => 60,
);
my %wildcard_rank = (
- 'interfaces ethernet * vrrp' => 50,
+ 'interfaces ethernet * vrrp' => 50,
'interfaces ethernet * vif * vrrp' => 50,
);