Signed-off-by: Jason Kölker <[email protected]>
---
 ryu/lib/ofctl_nicira_ext.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/ryu/lib/ofctl_nicira_ext.py b/ryu/lib/ofctl_nicira_ext.py
index 3a5c6be..fd77369 100644
--- a/ryu/lib/ofctl_nicira_ext.py
+++ b/ryu/lib/ofctl_nicira_ext.py
@@ -39,9 +39,8 @@ def action_to_str(act, ofctl_action_to_str):
                                                       src_start, src_end)
 
     elif sub_type == nicira_ext.NXAST_REG_LOAD:
-        start = act.ofs
-        end = start + act.nbits
-        return 'NX_LOAD: {%s[%s..%s]: %x}' % (act.dst, start, end, act.value)
+        return 'NX_LOAD: {%s[%s..%s]: %x}' % (act.dst, act.start, act.end,
+                                              act.value)
 
     elif sub_type == nicira_ext.NXAST_LEARN:
         specs = []
@@ -120,9 +119,7 @@ def action_to_str(act, ofctl_action_to_str):
 
     elif sub_type == nicira_ext.NXAST_CT:
         if act.zone_ofs_nbits != 0:
-            start = act.zone_ofs_nbits
-            end = start + 16
-            zone = act.zone_src + ('[%s..%s]' % (start, end))
+            zone = act.zone_src + ('[%s..%s]' % (act.zone_start, act.zone_end))
 
         else:
             zone = act.zone_src
-- 
2.7.4


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to