mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-25 02:21:45 +01:00
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:
parent
3484e6e573
commit
7715934d95
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user