summaryrefslogtreecommitdiff
path: root/scripts/keepalived
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-23 16:15:57 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-23 16:44:54 -0800
commitce0724444cca9f005925786d8523832e10357430 (patch)
tree94d08f9886ff3a48ce0ea494e2e429d4d9951544 /scripts/keepalived
parent01d4c9c6e8c5e7b20ff1bd7372417b086af8f301 (diff)
downloadvyatta-cfg-system-ce0724444cca9f005925786d8523832e10357430.tar.gz
vyatta-cfg-system-ce0724444cca9f005925786d8523832e10357430.zip
Remove check function from keepalived perl script
No longer need check-vip option since the type checking is done in template
Diffstat (limited to 'scripts/keepalived')
-rwxr-xr-xscripts/keepalived/vyatta-keepalived.pl16
1 files changed, 0 insertions, 16 deletions
diff --git a/scripts/keepalived/vyatta-keepalived.pl b/scripts/keepalived/vyatta-keepalived.pl
index ebb8307c..651832b1 100755
--- a/scripts/keepalived/vyatta-keepalived.pl
+++ b/scripts/keepalived/vyatta-keepalived.pl
@@ -26,7 +26,6 @@
use lib "/opt/vyatta/share/perl5/";
use Vyatta::Config;
use Vyatta::Keepalived;
-use Vyatta::TypeChecker;
use Vyatta::Interface;
use Vyatta::ConntrackSync;
use Vyatta::Misc;
@@ -514,21 +513,6 @@ if ( $action eq "delete" ) {
exit 0;
}
-if ( $action eq "check-vip" ) {
- if ( !defined $vrrp_vip ) {
- print "must include the virtual-address to check";
- exit 1;
- }
- my $rc = 1;
- if ( $vrrp_vip =~ /\// ) {
- $rc = Vyatta::TypeChecker::validateType( 'ipv4net', $vrrp_vip, 1 );
- } else {
- $rc = Vyatta::TypeChecker::validateType( 'ipv4', $vrrp_vip, 1 );
- }
- exit 1 if !$rc;
- exit 0;
-}
-
if ( $action eq "list-vrrp-intf" ) {
my @intfs = list_vrrp_intf();
print join( ' ', @intfs );