mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-04 20:06:09 +02:00
rest_firewall: remove of an unnecessary comma of json response
Signed-off-by: WATANABE Fumitaka <watanabe.fumitaka@nttcom.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
8408253ff4
commit
85778d3817
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user