Merge "ip-lib : use "ip neigh replace" instead of "ip neigh add""
This commit is contained in:
commit
19a79084fb
@ -444,7 +444,7 @@ class IpNeighCommand(IpDeviceCommandBase):
|
|||||||
COMMAND = 'neigh'
|
COMMAND = 'neigh'
|
||||||
|
|
||||||
def add(self, ip_version, ip_address, mac_address):
|
def add(self, ip_version, ip_address, mac_address):
|
||||||
self._as_root('add',
|
self._as_root('replace',
|
||||||
ip_address,
|
ip_address,
|
||||||
'lladdr',
|
'lladdr',
|
||||||
mac_address,
|
mac_address,
|
||||||
|
@ -810,7 +810,7 @@ class TestIpNeighCommand(TestIPCmdBase):
|
|||||||
|
|
||||||
def test_add_entry(self):
|
def test_add_entry(self):
|
||||||
self.neigh_cmd.add(4, '192.168.45.100', 'cc:dd:ee:ff:ab:cd')
|
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',
|
'cc:dd:ee:ff:ab:cd', 'nud', 'permanent',
|
||||||
'dev', 'tap0'))
|
'dev', 'tap0'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user