diff options
author | takahashi.minoru <takahashi.minoru7@gmail.com> | 2014-06-02 14:02:10 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-06-03 22:49:43 +0900 |
commit | f0df43b4b37e1b30fe84a4f049b0c82405f43d47 (patch) | |
tree | a70b9ccc87229fbbd441c7b6f6fe392764e8e13a | |
parent | 4c341853a5cc6c5ae64a93ed4f43db006cf1e4e4 (diff) |
ofctl_v1_2: fix errors of get_flow_stats
following match fields caused an exception at get_flow_stats command:
ipv6_nd_sll, ipv6_nd_tll
this patch fixes this problem.
Signed-off-by: TAKAHASHI Minoru <takahashi.minoru7@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/ofctl_v1_2.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ryu/lib/ofctl_v1_2.py b/ryu/lib/ofctl_v1_2.py index 0ad85ee2..ce49a45f 100644 --- a/ryu/lib/ofctl_v1_2.py +++ b/ryu/lib/ofctl_v1_2.py @@ -443,6 +443,8 @@ def match_to_str(ofmatch): if key == 'dl_src' or key == 'dl_dst' or key == 'arp_sha' or \ key == 'arp_tha': value = match_eth_to_str(match_field.value, match_field.mask) + elif key == 'ipv6_nd_tll' or key == 'ipv6_nd_sll': + value = mac.haddr_to_str(match_field.value) elif key == 'nw_src' or key == 'nw_dst' or \ key == 'arp_spa' or key == 'arp_tpa': value = match_ip_to_str(match_field.value, match_field.mask) |