mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
Merge branch 'step02-models' into step03-tables
This commit is contained in:
commit
ba063bc15b
@ -8,20 +8,20 @@ from utilities.choices import ChoiceSet
|
||||
class ActionChoices(ChoiceSet):
|
||||
key = 'AccessListRule.action'
|
||||
|
||||
CHOICES = (
|
||||
CHOICES = [
|
||||
('permit', 'Permit', 'green'),
|
||||
('deny', 'Deny', 'red'),
|
||||
('reject', 'Reject (Reset)', 'orange'),
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
class ProtocolChoices(ChoiceSet):
|
||||
|
||||
CHOICES = (
|
||||
CHOICES = [
|
||||
('tcp', 'TCP', 'blue'),
|
||||
('udp', 'UDP', 'orange'),
|
||||
('icmp', 'ICMP', 'purple'),
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
class AccessList(NetBoxModel):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user