summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Larson <slioch@eng-140.vyatta.com>2008-01-18 16:32:38 -0800
committerMichael Larson <slioch@eng-140.vyatta.com>2008-01-18 16:32:38 -0800
commit2e39e64f3806fc8abb44a39843e1a2df4aec6f15 (patch)
tree67b6156b68986171f8eb5d75e55e9234a74d74aa
parentab67454a63206c7f21833d108b47e9fcdab64f45 (diff)
downloadvyatta-wanloadbalance-2e39e64f3806fc8abb44a39843e1a2df4aec6f15.tar.gz
vyatta-wanloadbalance-2e39e64f3806fc8abb44a39843e1a2df4aec6f15.zip
initial checkin of skeletal cli commands for wan load-balancing, plus other packaging changes.
-rw-r--r--Makefile.am6
-rw-r--r--debian/control2
-rw-r--r--debian/vyatta-wanloadbalance.postinst6
-rw-r--r--debian/vyatta-wanloadbalance.postrm6
-rw-r--r--debian/vyatta-wanloadbalance/DEBIAN/control12
-rw-r--r--debian/vyatta-wanloadbalance/DEBIAN/md5sums25
-rwxr-xr-xdebian/vyatta-wanloadbalance/DEBIAN/postinst6
-rwxr-xr-xdebian/vyatta-wanloadbalance/DEBIAN/postrm6
-rwxr-xr-xdebian/vyatta-wanloadbalance/opt/vyatta/sbin/wan_lbbin0 -> 72140 bytes
-rwxr-xr-xdebian/vyatta-wanloadbalance/opt/vyatta/sbin/wlb.init43
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.def3
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/failure-count/node.def2
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/ping/node.def2
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/resp-time/node.def2
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/success-count/node.def2
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.def3
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/address/node.def2
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/network/node.def2
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-name/node.def3
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-number/node.def3
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.def3
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.tag/weight/node.def2
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/address/node.def2
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/network/node.def2
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-name/node.def3
-rw-r--r--debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-number/node.def3
-rw-r--r--debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/NEWS.gzbin0 -> 57 bytes
-rw-r--r--debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/README1
-rw-r--r--debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/changelog.Debian.gzbin0 -> 165 bytes
-rw-r--r--debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/changelog.gzbin0 -> 416 bytes
-rw-r--r--debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/copyright34
-rw-r--r--debian/vyatta-wanloadbalance/usr/share/linda/overrides/vyatta-wanloadbalance1
-rw-r--r--debian/vyatta-wanloadbalance/usr/share/lintian/overrides/vyatta-wanloadbalance2
-rw-r--r--templates/load-balancing/wan/interface-health/node.def3
-rw-r--r--templates/load-balancing/wan/interface-health/node.tag/failure-count/node.def2
-rw-r--r--templates/load-balancing/wan/interface-health/node.tag/ping/node.def2
-rw-r--r--templates/load-balancing/wan/interface-health/node.tag/resp-time/node.def2
-rw-r--r--templates/load-balancing/wan/interface-health/node.tag/success-count/node.def2
-rw-r--r--templates/load-balancing/wan/rule/node.def3
-rw-r--r--templates/load-balancing/wan/rule/node.tag/destination/address/node.def2
-rw-r--r--templates/load-balancing/wan/rule/node.tag/destination/network/node.def2
-rw-r--r--templates/load-balancing/wan/rule/node.tag/destination/port-name/node.def3
-rw-r--r--templates/load-balancing/wan/rule/node.tag/destination/port-number/node.def3
-rw-r--r--templates/load-balancing/wan/rule/node.tag/interface/node.def3
-rw-r--r--templates/load-balancing/wan/rule/node.tag/interface/node.tag/weight/node.def2
-rw-r--r--templates/load-balancing/wan/rule/node.tag/source/address/node.def2
-rw-r--r--templates/load-balancing/wan/rule/node.tag/source/network/node.def2
-rw-r--r--templates/load-balancing/wan/rule/node.tag/source/port-name/node.def3
-rw-r--r--templates/load-balancing/wan/rule/node.tag/source/port-number/node.def3
49 files changed, 227 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index a2012d3..9341432 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+cfgdir = $(datadir)/vyatta-cfg/templates
+
initddir = /etc/init.d
AM_CPPFLAGS = -I src -Wall -DDEBUG
@@ -19,3 +21,7 @@ sbin_PROGRAMS = src/wan_lb
cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \
cpio -0pd
+
+install-exec-hook:
+ mkdir -p $(DESTDIR)$(cfgdir)
+ cd templates; $(cpiop) $(DESTDIR)$(cfgdir)
diff --git a/debian/control b/debian/control
index 2835656..a858651 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Depends: bash (>= 3.1),
sed (>= 4.1.5),
perl (>= 5.8.8),
procps (>= 1:3.2.7-3),
- quagga,
+ vyatta-quagga,
coreutils (>= 5.97-5.3),
vyatta-config-migrate
Suggests: util-linux (>= 2.13-5),
diff --git a/debian/vyatta-wanloadbalance.postinst b/debian/vyatta-wanloadbalance.postinst
new file mode 100644
index 0000000..c1f08d6
--- /dev/null
+++ b/debian/vyatta-wanloadbalance.postinst
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+prefix=/opt/vyatta
+sysconfdir=${prefix}/etc
+
+#nothing
diff --git a/debian/vyatta-wanloadbalance.postrm b/debian/vyatta-wanloadbalance.postrm
new file mode 100644
index 0000000..262b9fe
--- /dev/null
+++ b/debian/vyatta-wanloadbalance.postrm
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+if [ "$1" = "purge" ]; then
+ update-rc.d vyatta-ofr remove >/dev/null || exit $?
+fi
+
diff --git a/debian/vyatta-wanloadbalance/DEBIAN/control b/debian/vyatta-wanloadbalance/DEBIAN/control
new file mode 100644
index 0000000..5bc4bff
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/DEBIAN/control
@@ -0,0 +1,12 @@
+Package: vyatta-wanloadbalance
+Version: 0.1
+Architecture: i386
+Maintainer: Michael Larson <mike@vyatta.com>
+Installed-Size: 356
+Depends: bash (>= 3.1), sed (>= 4.1.5), perl (>= 5.8.8), procps (>= 1:3.2.7-3), vyatta-quagga, coreutils (>= 5.97-5.3), vyatta-config-migrate
+Suggests: util-linux (>= 2.13-5), net-tools, ethtool, ncurses-bin (>= 5.5-5), ntpdate
+Section: contrib/net
+Priority: extra
+Description: Vyatta configuration system
+ This package has the Vyatta wan load balance project. It includes support for
+ the vyatta cli for configuration.
diff --git a/debian/vyatta-wanloadbalance/DEBIAN/md5sums b/debian/vyatta-wanloadbalance/DEBIAN/md5sums
new file mode 100644
index 0000000..1d193f4
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/DEBIAN/md5sums
@@ -0,0 +1,25 @@
+5e309010d92880d15672129133e5354d usr/share/doc/vyatta-wanloadbalance/README
+3c92803d5c1d5b506fbf10fea5ef154d usr/share/doc/vyatta-wanloadbalance/NEWS.gz
+9dc8bbe58ac1899b2d26b6a6afbc6b9b usr/share/doc/vyatta-wanloadbalance/changelog.Debian.gz
+d5b6fc9862693420e136901e26649011 usr/share/doc/vyatta-wanloadbalance/changelog.gz
+cb1ea7b0e74c21a5e12a4f9ed38c7994 usr/share/doc/vyatta-wanloadbalance/copyright
+e9e04ef2861fcfc07f03f018ec5d3305 usr/share/lintian/overrides/vyatta-wanloadbalance
+f3923aa07256f6ed0eef752b0ce213ea usr/share/linda/overrides/vyatta-wanloadbalance
+30c7f2d4054fbd369083fbcd99d4182e opt/vyatta/sbin/wlb.init
+091d6831595890cadf16081dfb63672a opt/vyatta/sbin/wan_lb
+2450cefdc74a64d549865fafc8dd6eb1 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/ping/node.def
+6c57c9dc462b72e3fdb6ea6b9af4e3a4 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/resp-time/node.def
+c9192540790172935abf0ebefc1c1b62 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/success-count/node.def
+dd070159fb4c42f7dfbce15b7cd1547d opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/failure-count/node.def
+199f9c630830d40322645529ae98da1a opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.def
+f5d50e46c5ab188d91d535532954f638 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.tag/weight/node.def
+199f9c630830d40322645529ae98da1a opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.def
+80208663477f6686dfd30031540cac60 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-name/node.def
+e7736c8eb9de7a1a8b47202bf98b2670 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/address/node.def
+5ff5fb1692d5253273bc9f1a42f0603e opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/network/node.def
+2b8a4d139de92e9e8535cde4dc44d237 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-number/node.def
+e76fd6faa7ac120f9e359597aa6d6ede opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-name/node.def
+e7736c8eb9de7a1a8b47202bf98b2670 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/address/node.def
+4d6f1065b1751e4a0a5dfd205122ea09 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/network/node.def
+16c5d3b87bd093a0e599ba3376520e5a opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-number/node.def
+05a1b30754b3bbdceb84b6dfeae61146 opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.def
diff --git a/debian/vyatta-wanloadbalance/DEBIAN/postinst b/debian/vyatta-wanloadbalance/DEBIAN/postinst
new file mode 100755
index 0000000..c1f08d6
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/DEBIAN/postinst
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+prefix=/opt/vyatta
+sysconfdir=${prefix}/etc
+
+#nothing
diff --git a/debian/vyatta-wanloadbalance/DEBIAN/postrm b/debian/vyatta-wanloadbalance/DEBIAN/postrm
new file mode 100755
index 0000000..262b9fe
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/DEBIAN/postrm
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+if [ "$1" = "purge" ]; then
+ update-rc.d vyatta-ofr remove >/dev/null || exit $?
+fi
+
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/sbin/wan_lb b/debian/vyatta-wanloadbalance/opt/vyatta/sbin/wan_lb
new file mode 100755
index 0000000..1fbaa17
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/sbin/wan_lb
Binary files differ
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/sbin/wlb.init b/debian/vyatta-wanloadbalance/opt/vyatta/sbin/wlb.init
new file mode 100755
index 0000000..60315f4
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/sbin/wlb.init
@@ -0,0 +1,43 @@
+#! /bin/bash
+
+declare progname=${0##*/}
+declare action=$1; shift
+
+conf=$1; shift
+
+
+test -x $bb || exit 0
+
+running_pid ()
+{
+ pidof $bb | while read pid ; do
+ f=$(tr '\000' '\t' < /proc/$pid/cmdline 2>/dev/null | cut -f2)
+ if [ "$f" == wlb ] ; then
+ echo $pid
+ return
+ fi
+ done
+ false
+}
+
+start ()
+{
+ local -i pid=$( running_pid )
+
+ [ $pid -ne 0 ] && return
+ sh -c wlb -f $conf
+}
+
+stop ()
+{
+ local -i pid=$( running_pid )
+ [ $pid -ne 0 ] && kill $pid
+}
+
+case "$action" in
+ start) start;;
+ stop) stop;;
+ restart) stop; sleep 1; start;;
+ *) echo "Usage: $progname {start|stop|restart}"
+ exit 1
+esac
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.def
new file mode 100644
index 0000000..bdef076
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "Interface name" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/failure-count/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/failure-count/node.def
new file mode 100644
index 0000000..19a7eec
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/failure-count/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: "failure count" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/ping/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/ping/node.def
new file mode 100644
index 0000000..a96486b
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/ping/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: "health test destination" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/resp-time/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/resp-time/node.def
new file mode 100644
index 0000000..cda8120
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/resp-time/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: "response time envelope" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/success-count/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/success-count/node.def
new file mode 100644
index 0000000..72b7a9d
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/interface-health/node.tag/success-count/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: "success count" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.def
new file mode 100644
index 0000000..6febf24
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "Rule number" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/address/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/address/node.def
new file mode 100644
index 0000000..d1f1e4e
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/address/node.def
@@ -0,0 +1,2 @@
+type: ipv4
+help: "IPv4 address" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/network/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/network/node.def
new file mode 100644
index 0000000..56643c8
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/network/node.def
@@ -0,0 +1,2 @@
+type: ipv4net
+help: "IPv4 Network address" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-name/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-name/node.def
new file mode 100644
index 0000000..eb723b7
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-name/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "Port name" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-number/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-number/node.def
new file mode 100644
index 0000000..330f130
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/destination/port-number/node.def
@@ -0,0 +1,3 @@
+tag:
+type: u32
+help: "Port number" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.def
new file mode 100644
index 0000000..bdef076
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "Interface name" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.tag/weight/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.tag/weight/node.def
new file mode 100644
index 0000000..59a9062
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/interface/node.tag/weight/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: "Load-balance weight" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/address/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/address/node.def
new file mode 100644
index 0000000..d1f1e4e
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/address/node.def
@@ -0,0 +1,2 @@
+type: ipv4
+help: "IPv4 address" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/network/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/network/node.def
new file mode 100644
index 0000000..f92f4ff
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/network/node.def
@@ -0,0 +1,2 @@
+type: ipv4net
+help: "IPv4 network address" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-name/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-name/node.def
new file mode 100644
index 0000000..2b10887
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-name/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "port name" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-number/node.def b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-number/node.def
new file mode 100644
index 0000000..29bf9d0
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/opt/vyatta/share/vyatta-cfg/templates/load-balancing/wan/rule/node.tag/source/port-number/node.def
@@ -0,0 +1,3 @@
+tag:
+type: u32
+help: "port number" \ No newline at end of file
diff --git a/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/NEWS.gz b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/NEWS.gz
new file mode 100644
index 0000000..fa02106
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/NEWS.gz
Binary files differ
diff --git a/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/README b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/README
new file mode 100644
index 0000000..1512679
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/README
@@ -0,0 +1 @@
+This package has the Vyatta wan load balancing project.
diff --git a/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/changelog.Debian.gz b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/changelog.Debian.gz
new file mode 100644
index 0000000..fddbb9d
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/changelog.Debian.gz
Binary files differ
diff --git a/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/changelog.gz b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/changelog.gz
new file mode 100644
index 0000000..aa35fe3
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/changelog.gz
Binary files differ
diff --git a/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/copyright b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/copyright
new file mode 100644
index 0000000..acf3262
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/usr/share/doc/vyatta-wanloadbalance/copyright
@@ -0,0 +1,34 @@
+This package was debianized by Michael Larson <mike@vyatta.com> on
+Mon, 24 Sep 2007 17:31:53 -0700.
+
+It's original content from the GIT repository <http://vyatta.com/git/vyatta-wanloadbalance>
+
+Upstream Author:
+
+ <eng@vyatta.com>
+
+Copyright:
+
+ Copyright (C) 2007 Vyatta, Inc.
+ All Rights Reserved.
+
+License:
+
+ The contents of this package are subject to the Vyatta Public License
+ Version 1.0 ("License"); you may not use this file except in
+ compliance with the License. You may obtain a copy of the License at
+ http://www.vyatta.com/vpl
+
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ the License for the specific language governing rights and limitations
+ under the License.
+
+ This code was originally developed by Vyatta, Inc.
+ Portions created by Vyatta are Copyright (C) 2007 Vyatta, Inc.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2007, Michael Larson <mike@vyatta.com> and
+is licensed under the GPL, see above.
diff --git a/debian/vyatta-wanloadbalance/usr/share/linda/overrides/vyatta-wanloadbalance b/debian/vyatta-wanloadbalance/usr/share/linda/overrides/vyatta-wanloadbalance
new file mode 100644
index 0000000..0381d9d
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/usr/share/linda/overrides/vyatta-wanloadbalance
@@ -0,0 +1 @@
+Tag: file-in-opt
diff --git a/debian/vyatta-wanloadbalance/usr/share/lintian/overrides/vyatta-wanloadbalance b/debian/vyatta-wanloadbalance/usr/share/lintian/overrides/vyatta-wanloadbalance
new file mode 100644
index 0000000..feed37a
--- /dev/null
+++ b/debian/vyatta-wanloadbalance/usr/share/lintian/overrides/vyatta-wanloadbalance
@@ -0,0 +1,2 @@
+vyatta-wanloadbalance: file-in-unusual-dir
+vyatta-wanloadbalance: dir-or-file-in-opt
diff --git a/templates/load-balancing/wan/interface-health/node.def b/templates/load-balancing/wan/interface-health/node.def
new file mode 100644
index 0000000..bdef076
--- /dev/null
+++ b/templates/load-balancing/wan/interface-health/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "Interface name" \ No newline at end of file
diff --git a/templates/load-balancing/wan/interface-health/node.tag/failure-count/node.def b/templates/load-balancing/wan/interface-health/node.tag/failure-count/node.def
new file mode 100644
index 0000000..19a7eec
--- /dev/null
+++ b/templates/load-balancing/wan/interface-health/node.tag/failure-count/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: "failure count" \ No newline at end of file
diff --git a/templates/load-balancing/wan/interface-health/node.tag/ping/node.def b/templates/load-balancing/wan/interface-health/node.tag/ping/node.def
new file mode 100644
index 0000000..a96486b
--- /dev/null
+++ b/templates/load-balancing/wan/interface-health/node.tag/ping/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: "health test destination" \ No newline at end of file
diff --git a/templates/load-balancing/wan/interface-health/node.tag/resp-time/node.def b/templates/load-balancing/wan/interface-health/node.tag/resp-time/node.def
new file mode 100644
index 0000000..cda8120
--- /dev/null
+++ b/templates/load-balancing/wan/interface-health/node.tag/resp-time/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: "response time envelope" \ No newline at end of file
diff --git a/templates/load-balancing/wan/interface-health/node.tag/success-count/node.def b/templates/load-balancing/wan/interface-health/node.tag/success-count/node.def
new file mode 100644
index 0000000..72b7a9d
--- /dev/null
+++ b/templates/load-balancing/wan/interface-health/node.tag/success-count/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: "success count" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.def b/templates/load-balancing/wan/rule/node.def
new file mode 100644
index 0000000..f61b10c
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "Rule number"
diff --git a/templates/load-balancing/wan/rule/node.tag/destination/address/node.def b/templates/load-balancing/wan/rule/node.tag/destination/address/node.def
new file mode 100644
index 0000000..d1f1e4e
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/destination/address/node.def
@@ -0,0 +1,2 @@
+type: ipv4
+help: "IPv4 address" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.tag/destination/network/node.def b/templates/load-balancing/wan/rule/node.tag/destination/network/node.def
new file mode 100644
index 0000000..56643c8
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/destination/network/node.def
@@ -0,0 +1,2 @@
+type: ipv4net
+help: "IPv4 Network address" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.tag/destination/port-name/node.def b/templates/load-balancing/wan/rule/node.tag/destination/port-name/node.def
new file mode 100644
index 0000000..eb723b7
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/destination/port-name/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "Port name" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.tag/destination/port-number/node.def b/templates/load-balancing/wan/rule/node.tag/destination/port-number/node.def
new file mode 100644
index 0000000..330f130
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/destination/port-number/node.def
@@ -0,0 +1,3 @@
+tag:
+type: u32
+help: "Port number" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.tag/interface/node.def b/templates/load-balancing/wan/rule/node.tag/interface/node.def
new file mode 100644
index 0000000..bdef076
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/interface/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "Interface name" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.tag/interface/node.tag/weight/node.def b/templates/load-balancing/wan/rule/node.tag/interface/node.tag/weight/node.def
new file mode 100644
index 0000000..59a9062
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/interface/node.tag/weight/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: "Load-balance weight" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.tag/source/address/node.def b/templates/load-balancing/wan/rule/node.tag/source/address/node.def
new file mode 100644
index 0000000..d1f1e4e
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/source/address/node.def
@@ -0,0 +1,2 @@
+type: ipv4
+help: "IPv4 address" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.tag/source/network/node.def b/templates/load-balancing/wan/rule/node.tag/source/network/node.def
new file mode 100644
index 0000000..f92f4ff
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/source/network/node.def
@@ -0,0 +1,2 @@
+type: ipv4net
+help: "IPv4 network address" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.tag/source/port-name/node.def b/templates/load-balancing/wan/rule/node.tag/source/port-name/node.def
new file mode 100644
index 0000000..2b10887
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/source/port-name/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "port name" \ No newline at end of file
diff --git a/templates/load-balancing/wan/rule/node.tag/source/port-number/node.def b/templates/load-balancing/wan/rule/node.tag/source/port-number/node.def
new file mode 100644
index 0000000..29bf9d0
--- /dev/null
+++ b/templates/load-balancing/wan/rule/node.tag/source/port-number/node.def
@@ -0,0 +1,3 @@
+tag:
+type: u32
+help: "port number" \ No newline at end of file