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 <takahashi.minoru7@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Minoru TAKAHASHI 2016-03-25 16:58:25 +09:00 committed by FUJITA Tomonori
parent 3484e6e573
commit 7715934d95

View File

@ -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: