[Backport/2.9/61996]update ce_vxlan_vap to fix bugs (#62503)

* Update ce_vxlan_vap to fix bugs

(cherry picked from commit 2db73601ba)

* update ce_vxlan_vap to fix bugs
pull/62524/head
yanzhangi 6 years ago committed by Toshio Kuratomi
parent ff9873beaa
commit c0f2a2df2a

@ -0,0 +1,2 @@
bugfixes:
- ce_vxlan_vap - update to fix some bugs - Modify the Operator Difference between Python 2 and Python 3. (https://github.com/ansible/ansible/pull/61996)

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