summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Interface.pm
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-06-26 14:02:44 -0700
committerStephen Hemminger <shemminger@vyatta.com>2012-06-26 14:02:44 -0700
commitc31f04696826f51b324e7e9410a70b4ce000b787 (patch)
treeaf0f6fdf161b7da8be8bf1e7f1df049e41541891 /lib/Vyatta/Interface.pm
parentaa93f1ec41837a120c96ba2f4d23729528dafc2e (diff)
downloadvyatta-cfg-c31f04696826f51b324e7e9410a70b4ce000b787.tar.gz
vyatta-cfg-c31f04696826f51b324e7e9410a70b4ce000b787.zip
Make dataplane matching less restrictive
Anything starting with dp[0-9] is a dataplane interface
Diffstat (limited to 'lib/Vyatta/Interface.pm')
-rwxr-xr-xlib/Vyatta/Interface.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm
index a25fddd..9cf13f7 100755
--- a/lib/Vyatta/Interface.pm
+++ b/lib/Vyatta/Interface.pm
@@ -83,8 +83,7 @@ my %net_prefix = (
vif => 'vif', },
'^wlan\d+$' => { path => 'wireless', vif => 'vif' },
'^ifb\d+$' => { path => 'input' },
- '^dp\d+p\d+p\d+$' => { path => 'dataplane', vif => 'vif' },
- '^dp\d+em\d+$' => { path => 'dataplane', vif => 'vif' },
+ '^dp\d+' => { path => 'dataplane', vif => 'vif' },
);
sub get_net_prefix {