Update ce_vxlan_vap to fix bugs

pull/61996/head
zhangyan 5 years ago
parent 0e9f002073
commit 2db73601ba

@ -291,7 +291,7 @@ def vlan_vid_to_bitmap(vid):
vlan_bit = ['0'] * 1024
int_vid = int(vid)
j = int_vid / 4
j = int_vid // 4
bit_int = 0x8 >> (int_vid % 4)
vlan_bit[j] = str(hex(bit_int))[2]
@ -341,7 +341,7 @@ def is_vlan_in_bitmap(vid, bitmap):
if is_vlan_bitmap_empty(bitmap):
return False
i = int(vid) / 4
i = int(vid) // 4
if i > len(bitmap):
return False

Loading…
Cancel
Save