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

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