summaryrefslogtreecommitdiff
path: root/lib/Vyatta/IpTables/Rule.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-24 15:07:15 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-24 15:07:15 -0800
commitc596eb74028ad78d995cbcf9b228131b9ac53dc0 (patch)
tree4c8b43c893e2cb84df70e1098e8d93d536f6af22 /lib/Vyatta/IpTables/Rule.pm
parent35b6202c67f3e6d05f66f430aceae30d96e0ea90 (diff)
downloadvyatta-cfg-firewall-c596eb74028ad78d995cbcf9b228131b9ac53dc0.tar.gz
vyatta-cfg-firewall-c596eb74028ad78d995cbcf9b228131b9ac53dc0.zip
Convert VyattaConfig to Vyatta::Config
Diffstat (limited to 'lib/Vyatta/IpTables/Rule.pm')
-rw-r--r--lib/Vyatta/IpTables/Rule.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Vyatta/IpTables/Rule.pm b/lib/Vyatta/IpTables/Rule.pm
index 196a3ca..fa7a0e5 100644
--- a/lib/Vyatta/IpTables/Rule.pm
+++ b/lib/Vyatta/IpTables/Rule.pm
@@ -1,6 +1,6 @@
package Vyatta::IpTables::Rule;
-use VyattaConfig;
+use Vyatta::Config;
require Vyatta::IpTables::AddressFilter;
my $src = new Vyatta::IpTables::AddressFilter;
@@ -73,7 +73,7 @@ sub setupDummy {
sub setup {
my ( $self, $level ) = @_;
- my $config = new VyattaConfig;
+ my $config = new Vyatta::Config;
$config->setLevel("$level");
@@ -100,7 +100,7 @@ sub setup {
$self->{_recent_time} = $config->returnValue('recent time');
$self->{_recent_cnt} = $config->returnValue('recent count');
- # TODO: need $config->exists("$level source") in VyattaConfig.pm
+ # TODO: need $config->exists("$level source") in Vyatta::Config.pm
$src->setup("$level source");
$dst->setup("$level destination");
@@ -109,7 +109,7 @@ sub setup {
sub setupOrig {
my ( $self, $level ) = @_;
- my $config = new VyattaConfig;
+ my $config = new Vyatta::Config;
$config->setLevel("$level");
@@ -137,7 +137,7 @@ sub setupOrig {
$self->{_recent_time} = $config->returnOrigValue('recent time');
$self->{_recent_cnt} = $config->returnOrigValue('recent count');
- # TODO: need $config->exists("$level source") in VyattaConfig.pm
+ # TODO: need $config->exists("$level source") in Vyatta::Config.pm
$src->setupOrig("$level source");
$dst->setupOrig("$level destination");