From cd7b67d5e03a719bd993d7dc5fa90264f06aa30d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 24 Apr 2009 09:56:38 -0700 Subject: Add support for virtual-ethernets --- lib/Vyatta/Interface.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3