systemvm: Fixes #2805 set gateway to empty string than None to avoid arping on 'None' (#2806)

Arping command in virtual-router was called anyway on python code.

on file: merge.py
line 239, in this code : "dp['gateway'] ='None' ''

later on CsAddress.py line 303

if 'gateway' in self.address:
self.arpPing()

This string 'None' makes if steatement always be true
the solution on #2806 makes dp['gateway'] =''

Cannot be None type because there is a string operation later on code.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Luiz Henrique 2018-08-28 07:27:10 -03:00 committed by Rohit Yadav
parent 13779ddd2e
commit 3212ce51e7
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class updateDataBag:
if('localgw' in self.qFile.data['cmd_line']):
dp['gateway'] = self.qFile.data['cmd_line']['localgw']
else:
dp['gateway'] = 'None'
dp['gateway'] = ''
dp['nic_dev_id'] = num
dp['nw_type'] = nw_type
qf = QueueFile()