Jian Li | b44ad28 | 2017-12-12 18:10:29 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | syntax = "proto3"; |
| 17 | option java_package = "org.onosproject.grpc.net.flow.models"; |
| 18 | |
| 19 | package net.flow; |
| 20 | |
| 21 | // Corresponds to org.onosproject.net.flow.FlowEntry. |
| 22 | enum FlowEntryStateProto { |
| 23 | |
| 24 | // Indicates that this rule has been submitted for addition. |
| 25 | // Not necessarily in the flow table. |
| 26 | PENDING_ADD = 0; |
| 27 | |
| 28 | // Rule has been added which means it is in the flow table. |
| 29 | ADDED = 1; |
| 30 | |
| 31 | // Flow has been marked for removal, might still be in flow table. |
| 32 | PENDING_REMOVE = 2; |
| 33 | |
| 34 | // Flow has been removed from flow table and can be purged. |
| 35 | REMOVED = 3; |
| 36 | |
| 37 | // Indicates that the installation of this flow has failed. |
| 38 | FAILED = 4; |
| 39 | } |
| 40 | |
| 41 | enum FlowLiveTypeProto { |
| 42 | |
| 43 | // Indicates that this rule has been submitted for addition immediately. |
| 44 | // Not necessarily collecting flow stats. |
| 45 | IMMEDIATE = 0; |
| 46 | |
| 47 | // Indicates that this rule has been submitted for a short time. |
| 48 | // Collecting flow stats every SHORT interval, defined by the implementation. |
| 49 | SHORT = 1; |
| 50 | |
| 51 | // Indicates that this rule has been submitted for a mid time. |
| 52 | // Collecting flow stats every MID interval, defined by the implementation. |
| 53 | MID = 2; |
| 54 | |
| 55 | // Indicates that this rule has been submitted for a long time. |
| 56 | // Collecting flow stats every LONG interval, defined by the implementation. |
| 57 | LONG = 3; |
| 58 | |
| 59 | // Indicates that this rule has been submitted for UNKNOWN or ERROR. |
| 60 | // Not necessarily collecting flow stats. |
| 61 | UNKNOWN = 4; |
| 62 | } |