Skip to content

Commit

Permalink
Update neigh table family field value
Browse files Browse the repository at this point in the history
Signed-off-by: Wenda Ni <wonda.ni@gmail.com>
  • Loading branch information
wendani committed Aug 4, 2021
1 parent e47d8ab commit 7c9dff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def remove_ip_address(self, interface, ip):
def add_neighbor(self, interface, ip, mac):
tbl = swsscommon.ProducerStateTable(self.pdb, "NEIGH_TABLE")
fvs = swsscommon.FieldValuePairs([("neigh", mac),
("family", "IPv4")])
("family", "IPv4" if "." in ip else "IPv6")])
tbl.set(interface + ":" + ip, fvs)
time.sleep(1)

Expand Down

0 comments on commit 7c9dff2

Please sign in to comment.