diff options
author | Robert Bays <robert@vyatta.com> | 2010-07-14 22:15:37 -0700 |
---|---|---|
committer | Robert Bays <robert@vyatta.com> | 2010-07-14 22:15:37 -0700 |
commit | f45107c41e01b2475304e243e25e0f25542395b6 (patch) | |
tree | a2b5556efcde58a39b8c38ac13524e42c2352c48 /scripts/bgp/vyatta-bgp.pl | |
parent | 3f165e541a87a1983e7adac72d1a58ba2df300fe (diff) | |
download | vyatta-cfg-quagga-f45107c41e01b2475304e243e25e0f25542395b6.tar.gz vyatta-cfg-quagga-f45107c41e01b2475304e243e25e0f25542395b6.zip |
move conditional checks for ttl-security back into the node.def files to keep them from being checked on every commit
Diffstat (limited to 'scripts/bgp/vyatta-bgp.pl')
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index daf5b360..c6188d36 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -1216,17 +1216,6 @@ sub check_for_peer_groups { } } - -# check that both ttl-security and ebgpmultihops aren't both defined -sub check_ttl_conflict { - my ($config, $path) = @_; - - my $ebgphops = $config->returnValue("$path ebgp-multihop"); - my $ttlsecurity = $config->returnValue("$path ttl-security hops"); - die "protocols bgp $path: can not define both ebgp-mulithop and ttl-security hops\n" - if (defined($ebgphops) && defined($ttlsecurity)); -} - # check that changed neighbors have a remote-as or peer-group defined sub check_remote_as { my $config = new Vyatta::Config; @@ -1239,8 +1228,6 @@ sub check_remote_as { foreach my $neighbor (@neighbors) { next unless $config->isChanged("$as neighbor $neighbor"); - check_ttl_conflict($config, "$as neighbor $neighbor"); - my $remoteas = $config->returnValue("$as neighbor $neighbor remote-as"); my ($peergroup, $peergroupas); if ($config->exists("$as neighbor $neighbor peer-group")) { |