Skip to content

Commit 8691db4

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 99f7d98 commit 8691db4

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
@@ -213,12 +213,15 @@ def test_chassis_system_interface(self, vct):
213213
assert spcfginfo["attached_switch_id"] != lc_switch_id, "RIF system port with wrong switch_id"
214214

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

224227
if vct is None:
@@ -381,24 +384,7 @@ def test_chassis_system_neigh(self, vct):
381384

382385
break
383386

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

0 commit comments

Comments
 (0)