Make autocost bandwidth calculation a floor division for Py3 compatibility (#66095)

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit 06927eab1f)

Add changelog for nxos_ospf_vrf fix

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
pull/66383/head
Nilashish Chakraborty 6 years ago committed by Matt Clay
parent 0d3c5c4bac
commit 54e0b2aa30

@ -0,0 +1,3 @@
---
bugfixes:
- Fix bandwidth calculation in nxos_ospf_vrf for Python 3 (https://github.com/ansible/ansible/pull/66095)

@ -299,7 +299,7 @@ def state_present(module, existing, proposed, candidate):
if len(value) < 5:
command = '{0} {1} Mbps'.format(key, value)
else:
value = str(int(value) / 1000)
value = str(int(value) // 1000)
command = '{0} {1} Gbps'.format(key, value)
elif key == 'bfd':
command = 'no bfd' if value == 'disable' else 'bfd'

Loading…
Cancel
Save