Fixed MPLS testcase
diff --git a/accton/accton_util.py b/accton/accton_util.py
index 1eb2946..371a5ea 100755
--- a/accton/accton_util.py
+++ b/accton/accton_util.py
@@ -730,7 +730,7 @@
return request
-def add_mpls_flow(ctrl, action_group_id, label=100 ,ethertype=0x0800, bos=True, send_barrier=False):
+def add_mpls_flow(ctrl, action_group_id, label=100 ,ethertype=0x0800, bos=1, send_barrier=False):
match = ofp.match()
match.oxm_list.append(ofp.oxm.eth_type(0x8847))
match.oxm_list.append(ofp.oxm.mpls_label(label))
@@ -1324,4 +1324,4 @@
print "idle_timeout", obj.idle_timeout
print "hard_timeout", obj.hard_timeout
#obj.actions
- print "packet count: %lx"%obj.packet_count
\ No newline at end of file
+ print "packet count: %lx"%obj.packet_count
diff --git a/accton/group_test.py b/accton/group_test.py
index 84fbde4..8acb025 100755
--- a/accton/group_test.py
+++ b/accton/group_test.py
@@ -620,7 +620,7 @@
oam_lm_tx_count=False,
set_pri_from_table=False
)
- mpls_intf_msg.group_id
+
stats = get_stats(self, ofp.message.group_desc_stats_request())
verify_group_stats=[]