summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/tests/integrated/test_add_flow_v12_actions.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/ryu/tests/integrated/test_add_flow_v12_actions.py b/ryu/tests/integrated/test_add_flow_v12_actions.py
index b4cd3116..2f0c7f73 100644
--- a/ryu/tests/integrated/test_add_flow_v12_actions.py
+++ b/ryu/tests/integrated/test_add_flow_v12_actions.py
@@ -421,10 +421,19 @@ class RunTest(tester.TestFlowBase):
actions = [dp.ofproto_parser.OFPActionSetNwTtl(nw_ttl), ]
self.add_apply_actions(dp, actions)
- def test_action_dec_nw_ttl(self, dp):
+ def test_action_dec_nw_ttl_ipv4(self, dp):
self._verify = [dp.ofproto.OFPAT_DEC_NW_TTL]
actions = [dp.ofproto_parser.OFPActionDecNwTtl(), ]
- self.add_apply_actions(dp, actions)
+ match = dp.ofproto_parser.OFPMatch()
+ match.set_dl_type(0x0800)
+ self.add_apply_actions(dp, actions, match)
+
+ def test_action_dec_nw_ttl_ipv6(self, dp):
+ self._verify = [dp.ofproto.OFPAT_DEC_NW_TTL]
+ actions = [dp.ofproto_parser.OFPActionDecNwTtl(), ]
+ match = dp.ofproto_parser.OFPMatch()
+ match.set_dl_type(0x86dd)
+ self.add_apply_actions(dp, actions, match)
def test_action_copy_ttl_out(self, dp):
self._verify = [dp.ofproto.OFPAT_COPY_TTL_OUT]