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