From 2db73601ba00975468658ae2b25a00014f2f2b5d Mon Sep 17 00:00:00 2001 From: zhangyan <1072973303@qq.com> Date: Mon, 9 Sep 2019 21:53:25 +0800 Subject: [PATCH] Update ce_vxlan_vap to fix bugs --- lib/ansible/modules/network/cloudengine/ce_vxlan_vap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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