Make autocost bandwidth calculation a floor division for Py3 compatibility (#66095)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
parent
fc2d7ae63e
commit
06927eab1f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue