VOL-3553 Changes to support core internal state instead of modfying admin state to be DELETED delete device scenario
Change-Id: I3a2f20e05e08fc13635686d37e215713c86fa591
diff --git a/protos/voltha_protos/core.proto b/protos/voltha_protos/core.proto
new file mode 100644
index 0000000..dd427b2
--- /dev/null
+++ b/protos/voltha_protos/core.proto
@@ -0,0 +1,26 @@
+syntax = "proto3";
+
+option go_package = "github.com/opencord/voltha-protos/v4/go/voltha";
+option java_package = "org.opencord.voltha";
+
+package voltha;
+
+message DeviceTransientState {
+ // Transient State for devices
+ enum Types {
+ // The transient state of the device is not set
+ NONE = 0;
+ // The state of the device in core is any state, i.e DELETING, DELETED, DELETE_FAILED, NONE.
+ // This state is only used for transitions.
+ ANY = 1;
+ // The device is in FORCE_DELETING state
+ FORCE_DELETING = 2;
+ // The device is getting deleted from adapter state
+ DELETING_FROM_ADAPTER = 3;
+ // The device is deleted from adapter and is getting deleted in core.
+ DELETING_POST_ADAPTER_RESPONSE = 4;
+ // State to represent that the device deletion is failed
+ DELETE_FAILED = 5;
+ }
+ Types transient_state = 1;
+}