ip-lib : use "ip neigh replace" instead of "ip neigh add"

Closes bug #1311002

Change-Id: Ie50bc0bff32b7f97ac317ccc2521bbea52d59ca3
This commit is contained in:
mathieu-rohon 2014-04-22 11:44:35 +02:00
parent 09e5726336
commit 6ca8e28d31
2 changed files with 2 additions and 2 deletions

View File

@ -444,7 +444,7 @@ class IpNeighCommand(IpDeviceCommandBase):
COMMAND = 'neigh'
def add(self, ip_version, ip_address, mac_address):
self._as_root('add',
self._as_root('replace',
ip_address,
'lladdr',
mac_address,

View File

@ -810,7 +810,7 @@ class TestIpNeighCommand(TestIPCmdBase):
def test_add_entry(self):
self.neigh_cmd.add(4, '192.168.45.100', 'cc:dd:ee:ff:ab:cd')
self._assert_sudo([4], ('add', '192.168.45.100', 'lladdr',
self._assert_sudo([4], ('replace', '192.168.45.100', 'lladdr',
'cc:dd:ee:ff:ab:cd', 'nud', 'permanent',
'dev', 'tap0'))