mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-13 07:29:40 +00:00
30 lines
625 B
Python
30 lines
625 B
Python
from utilities.choices import ChoiceSet
|
|
|
|
class ACLActionChoices(ChoiceSet):
|
|
ACTION_DENY = 'deny'
|
|
ACTION_PERMIT = 'permit'
|
|
ACTION_REJECT = 'reject'
|
|
|
|
CHOICES = [
|
|
(ACTION_DENY, 'Deny', 'red'),
|
|
(ACTION_PERMIT, 'Permit', 'green'),
|
|
(ACTION_REJECT, 'Reject (Reset)', 'orange'),
|
|
]
|
|
|
|
|
|
class ACLTypeChoices(ChoiceSet):
|
|
|
|
CHOICES = [
|
|
('extended', 'Extended', 'purple'),
|
|
('standard', 'Standard', 'blue'),
|
|
]
|
|
|
|
|
|
class ACLProtocolChoices(ChoiceSet):
|
|
|
|
CHOICES = [
|
|
('icmp', 'ICMP', 'purple'),
|
|
('tcp', 'TCP', 'blue'),
|
|
('udp', 'UDP', 'orange'),
|
|
]
|