diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-06-26 14:02:44 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-06-26 14:02:44 -0700 |
commit | c31f04696826f51b324e7e9410a70b4ce000b787 (patch) | |
tree | af0f6fdf161b7da8be8bf1e7f1df049e41541891 | |
parent | aa93f1ec41837a120c96ba2f4d23729528dafc2e (diff) | |
download | vyatta-cfg-c31f04696826f51b324e7e9410a70b4ce000b787.tar.gz vyatta-cfg-c31f04696826f51b324e7e9410a70b4ce000b787.zip |
Make dataplane matching less restrictive
Anything starting with dp[0-9] is a dataplane interface
-rwxr-xr-x | lib/Vyatta/Interface.pm | 3 |
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 { |