summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-08-14 10:48:31 -0700
committerStephen Hemminger <shemminger@vyatta.com>2012-08-14 10:51:37 -0700
commit4e684e89acddf896f86659a8ba8aa461f599dc96 (patch)
treed8f66ff333ddc58c427a9301c70c80a0f507d9ba
parent489aef6b02d056c6515fd8554b46baaabc4930bf (diff)
downloadvyatta-cfg-system-4e684e89acddf896f86659a8ba8aa461f599dc96.tar.gz
vyatta-cfg-system-4e684e89acddf896f86659a8ba8aa461f599dc96.zip
Add support for network device prefix table
Bug 8279 Put prefix table in /opt/vyatta/etc/netdevice
-rw-r--r--Makefile.am1
-rwxr-xr-xdebian/vyatta-cfg-system.postinst.in1
-rw-r--r--sysconf/netdevice12
3 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 9c562aae..0bae978d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -102,6 +102,7 @@ sysconf_DATA += sysconf/filecaps
sysconf_DATA += sysconf/capability.conf
sysconf_DATA += sysconf/cpufrequtils
sysconf_DATA += sysconf/sudoers
+sysconf_DATA += sysconf/netdevice
libudevdir = /lib/udev
udevrulesdir = /lib/udev/rules.d
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 3f75d6d7..cf9eecdb 100755
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -130,6 +130,7 @@ mkdir -p /opt/vyatta/etc/config/support
chown -R root:vyattacfg /opt/vyatta/etc/config
chmod -R 775 /opt/vyatta/etc/config
mkdir -p /opt/vyatta/etc/logrotate
+mkdir -p /opt/vyatta/etc/netdevice.d
# create /opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script
# this should be after 'mkdir -p /opt/vyatta/etc/config/scripts' above
diff --git a/sysconf/netdevice b/sysconf/netdevice
new file mode 100644
index 00000000..f9fc425e
--- /dev/null
+++ b/sysconf/netdevice
@@ -0,0 +1,12 @@
+# device name to CLI path matching
+lo loopback
+eth ethernet
+ifb input
+peth pseudo-ethernet
+br bridge
+bond bonding
+vtun openvpn
+tun tunnel
+vti vti
+wlm wireless-modem
+wlan wireless