-
Notifications
You must be signed in to change notification settings - Fork 0
/
acl_schema.yaml
175 lines (175 loc) · 4.5 KB
/
acl_schema.yaml
1
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
definitions:
ACE:
description: Parameters that can be used when defining an individual Access Control Entry.
properties:
action:
allOf:
- $ref: '#/definitions/Action'
description: A Capirca-supported `Action`.
comment:
description: An ACE comment, usually rendered as a ``remark``.
title: Comment
type: string
destination_addresses:
description: A list of Capirca-defined network objects for filtering the destination address.
items:
type: string
title: Destination Addresses
type: array
destination_excludes:
description: A list of Capirca-defined sources to exclude from `ACE.destination_addresses`.
items:
type: string
title: Destination Excludes
type: array
destination_ports:
description: A list of Capirca-defined ports to filter destination ports.
items:
type: string
title: Destination Ports
type: array
name:
description: A reference name for the ACE, usually rendered as a ``remark``.
title: Name
type: string
options:
description: A list of additional filtering options, such as TCP Established, for filtering traffic.
items:
$ref: '#/definitions/Option'
type: array
protocols:
description: A list of IP protocols against which to filter.
items:
$ref: '#/definitions/Protocol'
type: array
source_addresses:
description: A list of Capirca-defined network objects for filtering the source address.
items:
type: string
title: Source Addresses
type: array
source_excludes:
description: A list of Capirca-defined sources to exclude from `ACE.source_addresses`.
items:
type: string
title: Source Excludes
type: array
source_ports:
description: A list of Capirca-defined ports to filter source ports.
items:
type: string
title: Source Ports
type: array
ticket:
description: A ticket/reference number for tracking/auditing. This is not used in the final rendered ACL.
title: Ticket
type: string
required:
- action
- name
title: ACE
type: object
Action:
description: A list of actions an ACL can take that are supported by Capirca.
enum:
- accept
- deny
- reject
- next
- reject-with-tcp-rst
title: Action
type: string
Option:
description: A list of protocol-level additional options supported by Capirca.
enum:
- tcp-established
- established
title: Option
type: string
Platform:
description: A list of supported Capirca Platforms.
enum:
- arista
- aruba
- brocade
- cisco
- ciscoasa
- cisconx
- ciscoxr
- cloudarmor
- gce
- gcp_hf
- ipset
- iptables
- juniper
- juniperevo
- junipermsmpc
- junipersrx
- k8s
- nftables
- nsxv
- packetfilter
- paloaltofw
- pcap
- speedway
- srxlo
- windows_advfirewall
title: Platform
type: string
Protocol:
description: A list of IP protocols supported by ACLs.
enum:
- tcp
- udp
- icmp
title: Protocol
type: string
Target:
description: A combination of `Platform` and `TargetOptions` for defining a target platform.
properties:
options:
items:
$ref: '#/definitions/TargetOptions'
type: array
platform:
$ref: '#/definitions/Platform'
required:
- platform
title: Target
type: object
TargetOptions:
description: A list of extra options supported by Capirca's ``target`` param.
enum:
- extended
- object-group
- inet6
- mixed
title: TargetOptions
type: string
properties:
aces:
description: A list of Access Control Entries.
items:
$ref: '#/definitions/ACE'
title: Aces
type: array
comment:
description: A comment explaining the purpose of the ACL, usually rendered as a ``remark``.
title: Comment
type: string
name:
description: The name of the ACL.
title: Name
type: string
targets:
description: A list of Capirca Targets for which to render the ACL.
items:
$ref: '#/definitions/Target'
title: Targets
type: array
required:
- name
- aces
- targets
title: ACL
type: object