From 058c232c602003198ff8f01439c349985ddf0fe5 Mon Sep 17 00:00:00 2001 From: Gaurav Sinha Date: Tue, 7 Aug 2012 11:39:33 -0700 Subject: fix rule deletion and modification --- lib/Vyatta/Conntrack/RuleIgnore.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/Vyatta/Conntrack/RuleIgnore.pm') diff --git a/lib/Vyatta/Conntrack/RuleIgnore.pm b/lib/Vyatta/Conntrack/RuleIgnore.pm index 3ff0211..fcb1c6b 100644 --- a/lib/Vyatta/Conntrack/RuleIgnore.pm +++ b/lib/Vyatta/Conntrack/RuleIgnore.pm @@ -1,8 +1,3 @@ -# -# The timeouts are implemented using nfct-timeout policies that are -# later applied to the corresponding iptables rules. The rules and -# policies are distinguished based on the rule number. - package Vyatta::Conntrack::RuleIgnore; use strict; @@ -50,7 +45,6 @@ sub rule { $rule .= " -p $self->{_protocol}"; } $rule .= " $srcrule $dstrule "; - print "rule is $rule\n"; return $rule; } @@ -72,6 +66,7 @@ sub setup_base { $config->setLevel("$level"); $self->{_comment} = $level; $self->{_rule_number} = $config->returnParent(".."); + $self->{_interface} = $config->$val_func("inbound-interface"); $src->$addr_setup("$level source"); $src->{_protocol} = $self->{_protocol};#needed to use address filter -- cgit v1.2.3