diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-24 09:56:38 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-24 09:56:38 -0700 |
commit | cd7b67d5e03a719bd993d7dc5fa90264f06aa30d (patch) | |
tree | 5c3cc99c759ccb6f9f9d4bd7c81e175846638ba3 /lib/Vyatta | |
parent | 2f8257eb1c58f04874ee8f85c6ae1c88d7a9a549 (diff) | |
download | vyatta-cfg-cd7b67d5e03a719bd993d7dc5fa90264f06aa30d.tar.gz vyatta-cfg-cd7b67d5e03a719bd993d7dc5fa90264f06aa30d.zip |
Add support for virtual-ethernets
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-x | lib/Vyatta/Interface.pm | 5 |
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 |