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