diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-28 17:56:55 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-28 17:56:55 +0100 |
commit | 9a317a31f9f0eb59180c3589fc10d8031c12de86 (patch) | |
tree | 69c52e762bb3a6619d28c50f7e665a68ccddb005 /lib | |
parent | 8fc0c2195b985bdec74099d16069326ce0b4a80b (diff) | |
download | vyatta-cfg-9a317a31f9f0eb59180c3589fc10d8031c12de86.tar.gz vyatta-cfg-9a317a31f9f0eb59180c3589fc10d8031c12de86.zip |
Interface: T2080: adjust to denesting of PPPoE
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Interface.pm | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm index 4c536ce..35457e4 100755 --- a/lib/Vyatta/Interface.pm +++ b/lib/Vyatta/Interface.pm @@ -152,7 +152,7 @@ sub path { my $self = shift; my $config = new Vyatta::Config; - if ($self->{name} =~ /^(pppo[ae])(\d+)/) { + if ($self->{name} =~ /^(pppo[a])(\d+)/) { # For ppp need to look in config file to find where used my $type = $1; @@ -161,10 +161,6 @@ sub path { my $intf = _ppp_intf($self->{name}); return unless $intf; - if ($type eq 'pppoe') { - return "interfaces ethernet $intf pppoe $id"; - } - my $adsl = "interfaces adsl $intf pvc"; my $config = new Vyatta::Config; foreach my $pvc ($config->listNodes($adsl)) { @@ -398,25 +394,6 @@ sub get_vif_interfaces { return @ret_ifs; } -sub get_pppoe_interfaces { - my ($cfg, $vfunc, $dev, $path) = @_; - my @ret_ifs; - - foreach my $ep ($cfg->$vfunc("$path pppoe")) { - my $pppdev = "pppoe$ep"; - my $ppppath = "$path pppoe $ep"; - - push @ret_ifs, - { - name => $pppdev, - type => 'pppoe', - path => $ppppath - }; - } - - return @ret_ifs; -} - # special cases for adsl sub get_adsl_interfaces { my ($cfg, $vfunc) = @_; @@ -481,9 +458,6 @@ sub get_config_interfaces { }; push @ret_ifs, get_vrrp_interfaces($cfg, $vfunc, $dev, $path); push @ret_ifs, get_vif_interfaces($cfg, $vfunc, $dev, $type, $path); - - push @ret_ifs, get_pppoe_interfaces($cfg, $vfunc, $dev, $path) - if ($type eq 'ethernet'); } } |