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>
This commit is contained in:
takahashi.minoru 2014-06-02 14:02:10 +09:00 committed by FUJITA Tomonori
parent 4c341853a5
commit f0df43b4b3

View File

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