Signed-off-by: HIYAMA Manabu <[email protected]>
---
ryu/tests/integrated/test_add_flow_v12_actions.py | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/ryu/tests/integrated/test_add_flow_v12_actions.py
b/ryu/tests/integrated/test_add_flow_v12_actions.py
index c78b40d..973373f 100644
--- a/ryu/tests/integrated/test_add_flow_v12_actions.py
+++ b/ryu/tests/integrated/test_add_flow_v12_actions.py
@@ -414,6 +414,18 @@ class RunTest(tester.TestFlowBase):
actions = [dp.ofproto_parser.OFPActionDecMplsTtl(), ]
self.add_apply_actions(dp, actions)
+ def test_action_set_nw_ttl(self, dp):
+ nw_ttl = 64
+ self._verify = [dp.ofproto.OFPAT_SET_NW_TTL,
+ 'nw_ttl', nw_ttl]
+ actions = [dp.ofproto_parser.OFPActionSetNwTtl(nw_ttl), ]
+ self.add_apply_actions(dp, actions)
+
+ def test_action_dec_nw_ttl(self, dp):
+ self._verify = [dp.ofproto.OFPAT_DEC_NW_TTL]
+ actions = [dp.ofproto_parser.OFPActionDecNwTtl(), ]
+ self.add_apply_actions(dp, actions)
+
def test_action_copy_ttl_out(self, dp):
self._verify = [dp.ofproto.OFPAT_COPY_TTL_OUT]
actions = [dp.ofproto_parser.OFPActionCopyTtlOut(), ]
@@ -431,6 +443,7 @@ class RunTest(tester.TestFlowBase):
'test_action_set_field_arp',
'test_action_set_field_ipv6',
'test_action_set_field_icmp',
+ 'test_action_set_nw_ttl',
]
for u in unsupported:
if t.find(u) != -1:
--
1.7.5.4
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel