summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-27 08:24:49 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-27 08:24:49 -0700
commitaa438a2cc742600adc37b116f431fa7dc4af6828 (patch)
tree01d1ea11d245d725ebd559a0f170ca953dcc02bf /lib
parent8c0697b5b5c1c666f84622f632936c96b78d0efe (diff)
parent5d74ce656b33817550903d3471870a303cb70e6b (diff)
downloadvyatta-cfg-aa438a2cc742600adc37b116f431fa7dc4af6828.tar.gz
vyatta-cfg-aa438a2cc742600adc37b116f431fa7dc4af6828.zip
Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg into jenner
Diffstat (limited to 'lib')
-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