summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Interface.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Interface.pm')
-rwxr-xr-xlib/Vyatta/Interface.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm
index 50122b4..b2a0041 100755
--- a/lib/Vyatta/Interface.pm
+++ b/lib/Vyatta/Interface.pm
@@ -51,6 +51,10 @@ use constant {
IFF_ECHO => 0x40000, # echo sent packets
};
+#
+# Mapping from name to attributes
+# path: configuration level below interfaces
+# vif: places to look for vif (if any)
my %net_prefix = (
'adsl[\d]+' => { path => 'adsl',
vif => 'vif', },
@@ -70,6 +74,7 @@ my %net_prefix = (
},
'tun[\d]+' => { path => 'tunnel' },
'wlm[\d]+' => { path => 'wireless-modem' },
+ 'veth[\d]+' => { path => 'ethernet', vif => 'vif', },
);
# get list of interface types