Skip to content

Commit

Permalink
[test]: Add a neighbor entry with BCAST MAC and verify its ignored (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny authored and stcheng committed Jul 9, 2019
1 parent 886ba9b commit cf9b02c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_dirbcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,15 @@ def test_DirectedBroadcast(dvs, testlog):
assert fvs[0][1] == "FF:FF:FF:FF:FF:FF"

assert dir_bcast

# Explicitly add a neighbor entry with BCAST MAC and check if its in ASIC_DB
dvs.runcmd("ip neigh replace 192.169.0.30 lladdr FF:FF:FF:FF:FF:FF dev Vlan100")

time.sleep(1)

keys = atbl.getKeys()
for key in keys:
neigh = json.loads(key)

if neigh['ip'] == "192.169.0.30":
assert False

0 comments on commit cf9b02c

Please sign in to comment.