blob: 9bf615dad9b3b7b49b4eb408ad1b5e3f56fcb6aa [file] [log] [blame]
Jian Li5a3a7872017-12-13 15:45:46 +09001/*
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 */
16syntax = "proto3";
17option java_package = "org.onosproject.grpc.net.flow.models";
18
19package net.flow;
20
21import "net/flow/TrafficSelectorProto.proto";
22import "net/flow/TrafficTreatmentProto.proto";
23import "net/flow/FlowRuleEnumsProto.proto";
24
25// Corresponds to org.onosproject.net.flow.DefaultFlowRule.
26message FlowRuleProto {
27 int32 priority = 1;
28 int32 app_id = 2;
29 string device_id = 3;
30 int64 flow_id = 4;
31 int32 timeout = 5;
32 bool permanent = 6;
33 int32 table_id = 7;
34 string table_name = 8;
35
36 net.flow.TrafficSelectorProto selector = 9;
37 net.flow.TrafficTreatmentProto treatment = 10;
38 net.flow.FlowRemoveReasonProto reason = 11;
39}