summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2016-08-08 16:49:38 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-19 17:48:53 +0900
commit016ec1c644e7fd691322e0013e4252d0ac5c8d19 (patch)
tree7a5d49073b91d0228d447bd4a41f6fd5085171e0
parent8c5071e2db3c62fac99a189e3bf7a76a8f4d1413 (diff)
ofctl_nicira_ext: Fix not enough arguments for format string
Currently, the assignment for 'table_id' is missing in the arguments of str representation. This patch fixes this problem. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/ofctl_nicira_ext.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/ryu/lib/ofctl_nicira_ext.py b/ryu/lib/ofctl_nicira_ext.py
index 0cfa3a0f..98f5167a 100644
--- a/ryu/lib/ofctl_nicira_ext.py
+++ b/ryu/lib/ofctl_nicira_ext.py
@@ -108,11 +108,16 @@ def action_to_str(act, ofctl_action_to_str):
'table_id: %s, '
'fin_idle_timeout: %s, '
'fin_hard_timeout: %s, '
- 'specs: %s}' % (act.idle_timeout, act.hard_timeout,
- act.priority, act.cookie, act.flags,
- act.fin_idle_timeout,
- act.self.fin_hard_timeout,
- specs))
+ 'specs: %s}' %
+ (act.idle_timeout,
+ act.hard_timeout,
+ act.priority,
+ act.cookie,
+ act.flags,
+ act.table_id,
+ act.fin_idle_timeout,
+ act.self.fin_hard_timeout,
+ specs))
elif sub_type == nicira_ext.NXAST_CONJUNCTION:
return ('NX_CONJUNCTION: {clause: %s, number_of_clauses: %s, id: %s}' %