|
|
@@ -2806,7 +2806,6 @@ class LegacyCablePathTests(CablePathTestCase):
|
|
|
interface2 = Interface.objects.create(device=self.device, name='Interface 2')
|
|
|
interface3 = Interface.objects.create(device=self.device, name='Interface 3')
|
|
|
|
|
|
- # Create cables 1
|
|
|
cable1 = Cable(
|
|
|
a_terminations=[interface1],
|
|
|
b_terminations=[interface2, interface3]
|
|
|
@@ -2838,6 +2837,10 @@ class LegacyCablePathTests(CablePathTestCase):
|
|
|
is_active=True
|
|
|
)
|
|
|
|
|
|
+ # Verify _path is cleared on removed interface (#21127)
|
|
|
+ interface3.refresh_from_db()
|
|
|
+ self.assertPathIsNotSet(interface3)
|
|
|
+
|
|
|
def test_401_exclude_midspan_devices(self):
|
|
|
"""
|
|
|
[IF1] --C1-- [FP1][Test Device][RP1] --C2-- [RP2][Test Device][FP2] --C3-- [IF2]
|