Himani Chawla | 7756374 | 2020-10-19 17:26:14 +0530 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 3 | option go_package = "github.com/opencord/voltha-protos/v5/go/core"; |
| 4 | option java_package = "org.opencord.voltha.core"; |
| 5 | |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 6 | package core; |
Himani Chawla | 7756374 | 2020-10-19 17:26:14 +0530 | [diff] [blame] | 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; |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 24 | // State to represent that reconcile is in progress |
| 25 | RECONCILE_IN_PROGRESS = 6; |
Himani Chawla | 7756374 | 2020-10-19 17:26:14 +0530 | [diff] [blame] | 26 | } |
| 27 | Types transient_state = 1; |
| 28 | } |