William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [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/ietf"; |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 4 | option java_package = "org.opencord.voltha"; |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 5 | |
William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 6 | package ietf; |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 7 | |
| 8 | message Interfaces { |
| 9 | repeated Interface all_interfaces = 1; |
| 10 | } |
| 11 | message Interface { |
| 12 | string name = 1 ; |
| 13 | string description = 2 ; |
| 14 | string type = 3 ; |
| 15 | bool enabled = 4; |
| 16 | enum LinkUpDownTrapEnableType |
| 17 | { |
| 18 | TRAP_DISABLED = 0 ; |
| 19 | TRAP_ENABLED = 1 ; |
| 20 | } |
| 21 | LinkUpDownTrapEnableType link_up_down_trap_enable = 5; |
| 22 | } |
| 23 | |
| 24 | message InterfacesState { |
| 25 | repeated InterfaceState all_interfacs = 1; |
| 26 | } |
| 27 | message InterfaceState { |
| 28 | string name = 1 ; |
| 29 | string type = 2 ; |
| 30 | enum AdminStatusType |
| 31 | { |
| 32 | ADMIN_DOWN = 0 ; |
| 33 | ADMIN_TESTING = 1 ; |
| 34 | ADMIN_UP = 2 ; |
| 35 | } |
| 36 | AdminStatusType admin_status = 3; |
| 37 | enum OperStatusType |
| 38 | { |
| 39 | DORMANT = 0 ; |
| 40 | LOWER_LAYER_DOWN = 1 ; |
| 41 | UNKNOWN = 2 ; |
| 42 | TESTING = 3 ; |
| 43 | UP = 4 ; |
| 44 | DOWN = 5 ; |
| 45 | NOT_PRESENT = 6 ; |
| 46 | } |
| 47 | OperStatusType oper_status = 4; |
| 48 | string last_change = 5 ; |
| 49 | int32 if_index = 6 ; |
| 50 | string phys_address = 7 ; |
| 51 | repeated string higher_layer_if = 8 ; |
| 52 | repeated string lower_layer_if = 9 ; |
| 53 | uint64 speed = 10 ; |
| 54 | } |