Himani Chawla | 7756374 | 2020-10-19 17:26:14 +0530 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | option go_package = "github.com/opencord/voltha-protos/v4/go/voltha"; |
| 4 | option java_package = "org.opencord.voltha"; |
| 5 | |
| 6 | package voltha; |
| 7 | |
| 8 | message DeviceTransientState { |
| 9 | // Transient State for devices |
| 10 | enum Types { |
| 11 | // The transient state of the device is not set |
| 12 | NONE = 0; |
| 13 | // The state of the device in core is any state, i.e DELETING, DELETED, DELETE_FAILED, NONE. |
| 14 | // This state is only used for transitions. |
| 15 | ANY = 1; |
| 16 | // The device is in FORCE_DELETING state |
| 17 | FORCE_DELETING = 2; |
| 18 | // The device is getting deleted from adapter state |
| 19 | DELETING_FROM_ADAPTER = 3; |
| 20 | // The device is deleted from adapter and is getting deleted in core. |
| 21 | DELETING_POST_ADAPTER_RESPONSE = 4; |
| 22 | // State to represent that the device deletion is failed |
| 23 | DELETE_FAILED = 5; |
| 24 | } |
| 25 | Types transient_state = 1; |
| 26 | } |