From 7715934d95dd76ae4f16822cfcafe40f1045ea53 Mon Sep 17 00:00:00 2001 From: Minoru TAKAHASHI Date: Fri, 25 Mar 2016 16:58:25 +0900 Subject: [PATCH] lib/ofctl_v1_4: Fix a small bug in mod_group_entry() If the specified value of group_type is empty, cause an error. This patch fixes this problem. Signed-off-by: Minoru TAKAHASHI Signed-off-by: FUJITA Tomonori --- ryu/lib/ofctl_v1_4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/lib/ofctl_v1_4.py b/ryu/lib/ofctl_v1_4.py index 3e4405f3..7e40d3cc 100644 --- a/ryu/lib/ofctl_v1_4.py +++ b/ryu/lib/ofctl_v1_4.py @@ -895,7 +895,7 @@ def mod_meter_entry(dp, meter, cmd): def mod_group_entry(dp, group, cmd): - group_type = str(group.get('type')) + group_type = str(group.get('type', 'ALL')) t = UTIL.ofp_group_type_from_user(group_type) group_type = t if t != group_type else None if group_type is None: