Add automated tests for PW
Changes:
- Adds 12 procedures to test all initiation scenarios
- Adds 3 procedures to test all int. transport scenarios
- Adds 4 procedures to test all termination scenarios
- Implements PW generation
- Updates README
Change-Id: Ic56fa02a46ede2b5bf04298338ef839378d09235
diff --git a/accton/accton_util.py b/accton/accton_util.py
index 15e6e99..176ef28 100755
--- a/accton/accton_util.py
+++ b/accton/accton_util.py
@@ -693,9 +693,7 @@
actions=[]
if vrf!=0:
- actions.append(ofp.action.set_field(ofp.oxm.exp2ByteValue(exp_type=1, value=vrf)))
- if mpls_type!=None:
- actions.append(ofp.action.set_field(ofp.oxm.exp2ByteValue(exp_type=ofp.oxm.OFDPA_EXP_TYPE_MPLS_TYPE, value=mpls_type)))
+ actions.append(ofp.action.set_field(ofp.oxm.exp2ByteValue(exp_type=1, value=vrf)))
#actions.append(ofp.action.set_field(ofp.oxm.vlan_vid(value=vlan_id)))
@@ -1736,6 +1734,7 @@
match.oxm_list.append(ofp.oxm.exp4ByteValue(exp_type=ofp.oxm.OFDPA_EXP_TYPE_MPLS_L2_PORT, value=0x00000000 + of_port))
match.oxm_list.append(ofp.oxm.tunnel_id(tunnel_index + ofp.oxm.TUNNEL_ID_BASE))
+
action = []
action.append(ofp.action.group(ref_gid))
assert(qos_index>=0)