Skip to content

Commit 8248ed1

Browse files
author
vedganes
committed
[vstest]VOQ system neighbor delete test
VOQ System neighbor delete test is piggy backed to existing system neigh test. This test also is the cleanup for the existing system neigh test Signed-off-by: vedganes <vedavinayagam.ganesan@nokia.com>
1 parent 5a8898b commit 8248ed1

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

tests/test_virtual_chassis.py

+5-19
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,15 @@ def test_chassis_system_interface(self, vct):
214214
assert spcfginfo["attached_switch_id"] != lc_switch_id, "RIF system port with wrong switch_id"
215215

216216
def test_chassis_system_neigh(self, vct):
217-
"""Test neigh record creation and syncing to chassis app db.
217+
"""Test neigh record create/delete and syncing to chassis app db.
218218
219219
This test validates that:
220220
(i) Local neighbor entry is created with encap index
221221
(ii) Local neighbor is synced to chassis ap db with assigned encap index
222222
(iii) Remote neighbor entry is created in ASIC_DB with received encap index
223+
(iv) Local neighbor entry is deleted when neighbor is deleted
224+
(v) Local neighbor delete is synced to chassis ap db
225+
(vi) Remote neighbor entry is cleared in ASIC_DB
223226
"""
224227

225228
if vct is None:
@@ -382,24 +385,7 @@ def test_chassis_system_neigh(self, vct):
382385

383386
break
384387

385-
def test_chassis_system_neigh_del(self, vct):
386-
"""Test neigh record deletion and syncing to chassis app db.
387-
388-
Pre-requisites:
389-
(i) Test case: test_chassis_system_neigh
390-
This test validates that:
391-
(i) Local neighbor entry is deleted when neighbor is deleted
392-
(ii) Local neighbor delete is synced to chassis ap db
393-
(iii) Remote neighbor entry is cleared in ASIC_DB
394-
"""
395-
396-
inband_port = "Ethernet0"
397-
398-
# Test neighbor on Ethernet4 since Ethernet0 is used as Inband port
399-
test_neigh_dev = "Ethernet4"
400-
test_neigh_ip = "10.8.104.3"
401-
402-
dvss = vct.dvss
388+
# Verify system neighbor delete and clearing
403389
for name in dvss.keys():
404390
dvs = dvss[name]
405391

0 commit comments

Comments
 (0)