summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-24 09:56:38 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-24 09:56:38 -0700
commitcd7b67d5e03a719bd993d7dc5fa90264f06aa30d (patch)
tree5c3cc99c759ccb6f9f9d4bd7c81e175846638ba3
parent2f8257eb1c58f04874ee8f85c6ae1c88d7a9a549 (diff)
downloadvyatta-cfg-cd7b67d5e03a719bd993d7dc5fa90264f06aa30d.tar.gz
vyatta-cfg-cd7b67d5e03a719bd993d7dc5fa90264f06aa30d.zip
Add support for virtual-ethernets
-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