[VOL-2866] Removing NNI port before ofagent disconnection
Change-Id: Icb34e1ae0fdebb3495331134e1ed3f456f3cc9f5
diff --git a/rw_core/core/device_state_transitions_test.go b/rw_core/core/device_state_transitions_test.go
index 8e06cb7..f7e94fb 100644
--- a/rw_core/core/device_state_transitions_test.go
+++ b/rw_core/core/device_state_transitions_test.go
@@ -213,6 +213,7 @@
tdm.DisableAllChildDevices,
tdm.DeleteAllUNILogicalPorts,
tdm.DeleteAllChildDevices,
+ tdm.DeleteAllLogicalPorts,
tdm.DeleteLogicalDevice,
tdm.RunPostDeviceDelete,
},
@@ -230,7 +231,7 @@
to.Root = true
t.Run(testName, func(t *testing.T) {
handlers = transitionMap.GetTransitionHandler(from, to)
- assert.Equal(t, 5, len(handlers))
+ assert.Equal(t, 6, len(handlers))
for idx, expHandler := range deleteDeviceTest.expectedParentHandlers {
assert.True(t, reflect.ValueOf(expHandler).Pointer() == reflect.ValueOf(handlers[idx]).Pointer())
}