Newer
Older
// Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package acl;
enum AclRuleTypeEnum {
ACLRULETYPE_UNDEFINED = 0;
ACLRULETYPE_IPV4 = 1;
ACLRULETYPE_IPV6 = 2;
ACLRULETYPE_L2 = 3;
ACLRULETYPE_MPLS = 4;
ACLRULETYPE_MIXED = 5;
}
enum AclForwardActionEnum {
ACLFORWARDINGACTION_UNDEFINED = 0;
ACLFORWARDINGACTION_DROP = 1;
ACLFORWARDINGACTION_ACCEPT = 2;
ACLFORWARDINGACTION_REJECT = 3;
}
enum AclLogActionEnum {
ACLLOGACTION_UNDEFINED = 0;
ACLLOGACTION_NOLOG = 1;
ACLLOGACTION_SYSLOG = 2;
}
message AclMatch {
uint32 dscp = 1;
uint32 protocol = 2;
string src_address = 3;
string dst_address = 4;
uint32 src_port = 5;
uint32 dst_port = 6;
uint32 start_mpls_label = 7;
uint32 end_mpls_label = 8;
}
message AclAction {
AclForwardActionEnum forward_action = 1;
AclLogActionEnum log_action = 2;
}
message AclEntry {
uint32 sequence_id = 1;
string description = 2;
AclMatch match = 3;
AclAction action = 4;
}
message AclRuleSet {
string name = 1;
AclRuleTypeEnum type = 2;
string description = 3;
string user_id = 4;
repeated AclEntry entries = 5;
}