diff --git a/lib/ansible/modules/network/cloudengine/ce_vxlan_vap.py b/lib/ansible/modules/network/cloudengine/ce_vxlan_vap.py index c554f8d09ed..2869b67a884 100644 --- a/lib/ansible/modules/network/cloudengine/ce_vxlan_vap.py +++ b/lib/ansible/modules/network/cloudengine/ce_vxlan_vap.py @@ -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