Signed-off-by: WATANABE Fumitaka <[email protected]>
---
 ryu/app/rest_firewall.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ryu/app/rest_firewall.py b/ryu/app/rest_firewall.py
index 1ca6cad..13de0ac 100644
--- a/ryu/app/rest_firewall.py
+++ b/ryu/app/rest_firewall.py
@@ -802,7 +802,8 @@ class Firewall(object):
                 vid = match.get(REST_DL_VLAN, VLANID_NONE)
                 rule_id = Firewall._cookie_to_ruleid(cookie)
                 delete_ids.setdefault(vid, '')
-                delete_ids[vid] += '%d,' % rule_id
+                delete_ids[vid] += (('%d' if delete_ids[vid] == ''
+                                     else ',%d') % rule_id)

             msg = []
             for vid, rule_ids in delete_ids.items():
-- 1.7.10.4



------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to