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

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
pull/66126/head
Nilashish Chakraborty 5 years ago committed by GitHub
parent fc2d7ae63e
commit 06927eab1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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