diff options
author | Minoru TAKAHASHI <takahashi.minoru7@gmail.com> | 2016-03-25 16:58:25 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-27 22:29:25 +0900 |
commit | 7715934d95dd76ae4f16822cfcafe40f1045ea53 (patch) | |
tree | ef3bb6dd7b29d56983b4c724acf7cdf44b8cccc5 | |
parent | 3484e6e57358a706be850e6123782a0225a8f23d (diff) |
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>
-rw-r--r-- | ryu/lib/ofctl_v1_4.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |