Blame SOURCES/open-lldp-v1.0.1-3-VDP-vdptool-test-cases-Some-test-cases-to-test-the-n.patch

ee47b4
From 61965537b574e8dcd1d7b61ef543ab11fcbbbe6b Mon Sep 17 00:00:00 2001
ee47b4
From: Thomas Richter <tmricht@linux.vnet.ibm.com>
ee47b4
Date: Wed, 21 Jan 2015 03:36:48 +0000
ee47b4
Subject: [PATCH] VDP: vdptool test cases Some test cases to test the new
ee47b4
 vdptool.
ee47b4
ee47b4
Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
ee47b4
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
ee47b4
---
ee47b4
 test/qbg22/vdp22/300-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/300.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/300.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/301-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/301.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/301.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/302-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/302.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/302.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/303-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/303.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/303.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/304-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/304.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/304.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/305-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/305.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/305.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/306-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/306.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/306.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/307-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/307.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/307.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/308-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/308.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/308.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/309-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/309.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/309.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/310-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/310.nlc         | 54 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/310.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/320-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/320.nlc         | 65 +++++++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/320.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/321-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/321.nlc         | 78 +++++++++++++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/321.vdp         | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/322-lldpad.conf | 55 +++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/322.nlc         | 95 ++++++++++++++++++++++++++++++++++++++++
ee47b4
 test/qbg22/vdp22/322.vdp         | 55 +++++++++++++++++++++++
ee47b4
 42 files changed, 2372 insertions(+)
ee47b4
 create mode 100644 test/qbg22/vdp22/300-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/300.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/300.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/301-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/301.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/301.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/302-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/302.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/302.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/303-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/303.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/303.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/304-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/304.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/304.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/305-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/305.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/305.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/306-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/306.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/306.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/307-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/307.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/307.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/308-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/308.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/308.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/309-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/309.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/309.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/310-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/310.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/310.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/320-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/320.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/320.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/321-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/321.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/321.vdp
ee47b4
 create mode 100644 test/qbg22/vdp22/322-lldpad.conf
ee47b4
 create mode 100755 test/qbg22/vdp22/322.nlc
ee47b4
 create mode 100644 test/qbg22/vdp22/322.vdp
ee47b4
ee47b4
diff --git a/test/qbg22/vdp22/300-lldpad.conf b/test/qbg22/vdp22/300-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..6027a6d
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/300-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04CA802A1EE5D1";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03CA802A1EE5D1";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/300.nlc b/test/qbg22/vdp22/300.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..ea801b2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/300.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2013
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# Wrong association command
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V assoc -c vsi=Xassoc,hello,1,2,001122334-455667788-99aabbccddee,none,22222-a:b:c:0:0:0)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/300.vdp b/test/qbg22/vdp22/300.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..cb9bacd
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/300.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "041E64AF9A93DF";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "031E64AF9A93DF";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/301-lldpad.conf b/test/qbg22/vdp22/301-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/301-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/301.nlc b/test/qbg22/vdp22/301.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..90409d7
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/301.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# Wrong manager identifier
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V assoc -c vsi=assoc,\\hello,1,2,001122334-455667788-99aabbccddee,none,22222-a:b:c:0:0:0)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/301.vdp b/test/qbg22/vdp22/301.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/301.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/302-lldpad.conf b/test/qbg22/vdp22/302-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/302-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/302.nlc b/test/qbg22/vdp22/302.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..1f0dfed
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/302.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# Wrong type identifier
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V assoc -c vsi=assoc,hello,1000000999,2,001122334-455667788-99aabbccddee,none,22222-a:b:c:0:0:0)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/302.vdp b/test/qbg22/vdp22/302.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/302.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/303-lldpad.conf b/test/qbg22/vdp22/303-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/303-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/303.nlc b/test/qbg22/vdp22/303.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..b40e6c6
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/303.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# Wrong typeidversion
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V assoc -c vsi=assoc,hello,1,257,001122334-455667788-99aabbccddee,none,22222-a:b:c:0:0:0)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/303.vdp b/test/qbg22/vdp22/303.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/303.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/304-lldpad.conf b/test/qbg22/vdp22/304-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/304-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/304.nlc b/test/qbg22/vdp22/304.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..3bae87e
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/304.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# Wrong hints
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V assoc -c vsi=assoc,hello,1,255,001122334-455667788-99aabbccddee,nix,22222-a:b:c:0:0:0)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/304.vdp b/test/qbg22/vdp22/304.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/304.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/305-lldpad.conf b/test/qbg22/vdp22/305-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/305-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/305.nlc b/test/qbg22/vdp22/305.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..ae951e1
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/305.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# FID missing
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Unknown status"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V deassoc -c vsi=deassoc,hello,1,254,001122334-455667788-99aabbccddee,-)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/305.vdp b/test/qbg22/vdp22/305.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/305.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/306-lldpad.conf b/test/qbg22/vdp22/306-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/306-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/306.nlc b/test/qbg22/vdp22/306.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..817a35b
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/306.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# FID bad vlan
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V deassoc -c vsi=deassoc,hello,1,253,001122334-455667788-99aabbccddee,-,65536)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/306.vdp b/test/qbg22/vdp22/306.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/306.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/307-lldpad.conf b/test/qbg22/vdp22/307-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/307-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/307.nlc b/test/qbg22/vdp22/307.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..d252568
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/307.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# FID bad mac
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V deassoc -c vsi=deassoc,hello,1,253,001122334-455667788-99aabbccddee,-,3-00:11:cc:ddd:e:f)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/307.vdp b/test/qbg22/vdp22/307.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/307.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/308-lldpad.conf b/test/qbg22/vdp22/308-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/308-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/308.nlc b/test/qbg22/vdp22/308.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..9ab72bc
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/308.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# FID format vlan-mac and mac
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V preassoc -c vsi=preassoc,hello,1,253,001122334-455667788-99aabbccddee,-,3-00:11:cc:d:e:f,4444)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/308.vdp b/test/qbg22/vdp22/308.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/308.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/309-lldpad.conf b/test/qbg22/vdp22/309-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/309-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/309.nlc b/test/qbg22/vdp22/309.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..8de0f86
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/309.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# FID bad group
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V preassoc -c vsi=preassoc,hello,1,253,001122334-455667788-99aabbccddee,-,333-00:11:cc:d:e:f-44a44)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/309.vdp b/test/qbg22/vdp22/309.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/309.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/310-lldpad.conf b/test/qbg22/vdp22/310-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/310-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/310.nlc b/test/qbg22/vdp22/310.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..ae90509
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/310.nlc
ee47b4
@@ -0,0 +1,54 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc with wrong user input using vdptool.
ee47b4
+# FID same mac several times
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi_ok="Invalid parameters"
ee47b4
+reply=$(../../../vdptool -i veth0 -T -V preassoc -c vsi=preassoc,hello,1,253,001122334-455667788-99aabbccddee,-,333-00:11:cc:d:e:f-44444,222-00:11:cc:d:e:f-44444)
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -eq 1 ]
ee47b4
+then
ee47b4
+	if [ "$reply" != "$vsi_ok" ]
ee47b4
+	then
ee47b4
+		echo "vdptool reply mismatch"
ee47b4
+		echo "expected reply:$vsi_ok"
ee47b4
+		echo "returned reply:$reply"
ee47b4
+	else
ee47b4
+		let rc=0
ee47b4
+	fi
ee47b4
+else
ee47b4
+	echo "vdptool unexpected success"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/310.vdp b/test/qbg22/vdp22/310.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/310.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/320-lldpad.conf b/test/qbg22/vdp22/320-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/320-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/320.nlc b/test/qbg22/vdp22/320.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..2dca2c2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/320.nlc
ee47b4
@@ -0,0 +1,65 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute a simple assoc input using vdptool. Expect success.
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi1="assoc,hello,1,2,00112233-4455-6677-8899-aabbccddeeff"
ee47b4
+vsi2="22222-0a:0b:0c:00:00:00"
ee47b4
+vsi_cmd="$vsi1,none,$vsi2"
ee47b4
+vsi_ok="vsi=$vsi1,0,$vsi2;"
ee47b4
+
ee47b4
+../../../vdptool -i veth0 -T -V assoc -c vsi=$vsi_cmd
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -ne 0 ]
ee47b4
+then
ee47b4
+	echo "vdptool failure (step 1)"
ee47b4
+	exit $rc
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 30
ee47b4
+reply="$(../../../vdptool -i veth0 -t -V assoc -c vsi)"
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -ne 0 ]
ee47b4
+then
ee47b4
+	echo "vdptool failure (step 2)"
ee47b4
+	exit $rc
ee47b4
+fi
ee47b4
+
ee47b4
+if [ "$reply" != "$vsi_ok" ]
ee47b4
+then
ee47b4
+	echo "vdptool reply mismatch"
ee47b4
+	echo "expected reply:$vsi_ok"
ee47b4
+	echo "returned reply:$reply"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/320.vdp b/test/qbg22/vdp22/320.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/320.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/321-lldpad.conf b/test/qbg22/vdp22/321-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/321-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/321.nlc b/test/qbg22/vdp22/321.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..1d5247a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/321.nlc
ee47b4
@@ -0,0 +1,78 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute two simple assoc input via vdptool. Expect success.
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi1="assoc,hello,1,2,00112233-4455-6677-8899-aabbccddeeff"
ee47b4
+vsi2="22222-0a:0b:0c:00:00:00"
ee47b4
+vsi_cmd="$vsi1,none,$vsi2"
ee47b4
+vsi_ok="$vsi1,0,$vsi2;"
ee47b4
+vsi1b="assoc,world,1,2,00112233-4455-6677-8899-ffeeddccbbaa"
ee47b4
+vsi2b="2-aa:bb:cc:00:00:00"
ee47b4
+vsib_cmd="$vsi1b,none,$vsi2b"
ee47b4
+vsib_ok="$vsi1b,0,$vsi2b;"
ee47b4
+
ee47b4
+../../../vdptool -i veth0 -T -V assoc -c vsi=$vsi_cmd
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -ne 0 ]
ee47b4
+then
ee47b4
+	echo "vdptool failure (step 1)"
ee47b4
+	exit $rc
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 30
ee47b4
+../../../vdptool -i veth0 -T -V assoc -c vsi=$vsib_cmd
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -ne 0 ]
ee47b4
+then
ee47b4
+	echo "vdptool failure (step 2)"
ee47b4
+	exit $rc
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 30
ee47b4
+reply="$(../../../vdptool -i veth0 -t -V assoc -c vsi)"
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -ne 0 ]
ee47b4
+then
ee47b4
+	echo "vdptool failure (step 3)"
ee47b4
+	exit $rc
ee47b4
+fi
ee47b4
+
ee47b4
+if [ "$reply" != "vsi=$vsib_ok$vsi_ok" ]
ee47b4
+then
ee47b4
+	echo "vdptool reply mismatch"
ee47b4
+	echo "expected reply:vsi=$vsib_ok$vsi_ok"
ee47b4
+	echo "returned reply:$reply"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/321.vdp b/test/qbg22/vdp22/321.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/321.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/322-lldpad.conf b/test/qbg22/vdp22/322-lldpad.conf
ee47b4
new file mode 100644
ee47b4
index 0000000..11ed7a2
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/322-lldpad.conf
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad station mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth0 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "station";
ee47b4
+      evbrrcap = false;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
diff --git a/test/qbg22/vdp22/322.nlc b/test/qbg22/vdp22/322.nlc
ee47b4
new file mode 100755
ee47b4
index 0000000..5b5840e
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/322.nlc
ee47b4
@@ -0,0 +1,95 @@
ee47b4
+#!/bin/bash
ee47b4
+#
ee47b4
+# Test case for LLDPAD VDP testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# 
ee47b4
+# Thomas Richter, IBM Research & Development, Boeblingen, Germany, 20-Apr-2013
ee47b4
+#
ee47b4
+# Execute assoc/preassoc input via vdptool. Expect success.
ee47b4
+#
ee47b4
+
ee47b4
+sleep 30	# Must: Wait some time for lldpad to start up and initialize
ee47b4
+outfile=$(basename $0)
ee47b4
+dirfile=$(dirname $0)
ee47b4
+cd $dirfile
ee47b4
+
ee47b4
+vsi1="assoc,hello,1,2,00112233-4455-6677-8899-aabbccddeeff"
ee47b4
+vsi2="22222-0a:0b:0c:00:00:00"
ee47b4
+vsi_cmd="$vsi1,none,$vsi2"
ee47b4
+vsi_ok="$vsi1,0,$vsi2;"
ee47b4
+vsi1b="preassoc,world,1,2,00112233-4455-6677-8899-ffeeddccbbaa"
ee47b4
+vsi2b="2-aa:bb:cc:00:00:00"
ee47b4
+vsib_cmd="$vsi1b,none,$vsi2b"
ee47b4
+vsib_ok="$vsi1b,0,$vsi2b;"
ee47b4
+
ee47b4
+../../../vdptool -i veth0 -T -V assoc -c vsi=$vsi_cmd
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -ne 0 ]
ee47b4
+then
ee47b4
+	echo "vdptool failure (step 1)"
ee47b4
+	exit $rc
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 30
ee47b4
+../../../vdptool -i veth0 -T -V preassoc -c vsi=$vsib_cmd
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -ne 0 ]
ee47b4
+then
ee47b4
+	echo "vdptool failure (step 2)"
ee47b4
+	exit $rc
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 30
ee47b4
+reply="$(../../../vdptool -i veth0 -t -V assoc -c vsi)"
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -ne 0 ]
ee47b4
+then
ee47b4
+	echo "vdptool failure (step 3)"
ee47b4
+	exit $rc
ee47b4
+fi
ee47b4
+
ee47b4
+if [ "$reply" != "vsi=$vsi_ok" ]
ee47b4
+then
ee47b4
+	echo "vdptool reply mismatch (step 3)"
ee47b4
+	echo "expected reply:vsi=$vsi_ok"
ee47b4
+	echo "returned reply:$reply"
ee47b4
+	exit 6
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+reply="$(../../../vdptool -i veth0 -t -V preassoc -c vsi)"
ee47b4
+rc=$?
ee47b4
+if [ "$rc" -ne 0 ]
ee47b4
+then
ee47b4
+	echo "vdptool failure (step 4)"
ee47b4
+	exit $rc
ee47b4
+fi
ee47b4
+
ee47b4
+if [ "$reply" != "vsi=$vsib_ok" ]
ee47b4
+then
ee47b4
+	echo "vdptool reply mismatch (step 4)"
ee47b4
+	echo "expected reply:vsi=$vsib_ok"
ee47b4
+	echo "returned reply:$reply"
ee47b4
+	let rc=1
ee47b4
+fi
ee47b4
+
ee47b4
+sleep 5
ee47b4
+exit $rc
ee47b4
diff --git a/test/qbg22/vdp22/322.vdp b/test/qbg22/vdp22/322.vdp
ee47b4
new file mode 100644
ee47b4
index 0000000..0c7e96a
ee47b4
--- /dev/null
ee47b4
+++ b/test/qbg22/vdp22/322.vdp
ee47b4
@@ -0,0 +1,55 @@
ee47b4
+#
ee47b4
+# Test case for LLDPAD testing according to IEEE 802.1Qbg ratified standard
ee47b4
+#
ee47b4
+# Copyright (c) International Business Machines Corp., 2014
ee47b4
+#
ee47b4
+# Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com>
ee47b4
+#
ee47b4
+# This program is free software; you can redistribute it and/or modify it
ee47b4
+# under the terms and conditions of the GNU General Public License,
ee47b4
+# version 2, as published by the Free Software Foundation.
ee47b4
+#
ee47b4
+# This program is distributed in the hope it will be useful, but WITHOUT
ee47b4
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ee47b4
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
ee47b4
+# more details.
ee47b4
+#
ee47b4
+# You should have received a copy of the GNU General Public License along with
ee47b4
+# this program; if not, write to the Free Software Foundation, Inc.,
ee47b4
+# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
ee47b4
+#
ee47b4
+
ee47b4
+# Configuration file for lldpad bridge mode setup.
ee47b4
+
ee47b4
+dcbx : 
ee47b4
+{
ee47b4
+  version = "1.0";
ee47b4
+  dcbx_version = 2;
ee47b4
+};
ee47b4
+nearest_customer_bridge : 
ee47b4
+{
ee47b4
+  veth2 : 
ee47b4
+  {
ee47b4
+    tlvid00000001 : 
ee47b4
+    {
ee47b4
+      info = "04C68829509676";
ee47b4
+    };
ee47b4
+    tlvid00000002 : 
ee47b4
+    {
ee47b4
+      info = "03C68829509676";
ee47b4
+    };
ee47b4
+    adminStatus = 3;
ee47b4
+    tlvid0080c20d : 
ee47b4
+    {
ee47b4
+      enableTx = true;
ee47b4
+      evbmode = "bridge";
ee47b4
+      evbrrcap = true;
ee47b4
+      evbrrreq = true;
ee47b4
+      evbgpid = false;
ee47b4
+      ecpretries = 3;
ee47b4
+      ecprte = 14;
ee47b4
+      vdprwd = 20;
ee47b4
+      vdprka = 20;
ee47b4
+    };
ee47b4
+  };
ee47b4
+};
ee47b4
-- 
ee47b4
2.1.0
ee47b4