summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorGaurav Sinha <gaurav.sinha@vyatta.com>2012-08-07 10:21:44 -0700
committerGaurav Sinha <gaurav.sinha@vyatta.com>2012-08-07 10:21:44 -0700
commitc5034d9090283e617193eb55c53427d4a773e4fa (patch)
tree341c1a21bef68714474bbb777873c10ff5d0c23d /lib/Vyatta
parent66971a32b157e1dfe4491843ab28857aa5495a4f (diff)
downloadvyatta-conntrack-c5034d9090283e617193eb55c53427d4a773e4fa.tar.gz
vyatta-conntrack-c5034d9090283e617193eb55c53427d4a773e4fa.zip
fixing rule creation
Diffstat (limited to 'lib/Vyatta')
-rw-r--r--lib/Vyatta/Conntrack/RuleIgnore.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Vyatta/Conntrack/RuleIgnore.pm b/lib/Vyatta/Conntrack/RuleIgnore.pm
index fd10e09..3ff0211 100644
--- a/lib/Vyatta/Conntrack/RuleIgnore.pm
+++ b/lib/Vyatta/Conntrack/RuleIgnore.pm
@@ -31,8 +31,11 @@ sub rule {
my $tcp_and_udp = 0;
# set CLI rule num as comment
my @level_nodes = split (' ', $self->{_comment});
- print "level nodes is @level_nodes\n";
- $rule .= "-m comment --comment \"$level_nodes[2]-$level_nodes[5]\" ";
+ $rule .= " -m comment --comment \"$level_nodes[2]-$level_nodes[4]\" ";
+
+ if (defined($self->{_interface})) {
+ $rule .= " -i $self->{_interface} ";
+ }
($srcrule, $err_str) = $src->rule();
if (defined($err_str)) {
Vyatta::Config::outputError(["Conntrack"], "Conntrack config error: $err_str");