mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
Merge branch 'step03-tables' into step04-forms
This commit is contained in:
commit
243954f0ed
@ -1,4 +1,3 @@
|
||||
## netbox-access-lists
|
||||
|
||||
Manage simple access control lists in NetBox
|
||||
|
||||
|
||||
@ -10,4 +10,3 @@ class NetBoxAccessListsConfig(PluginConfig):
|
||||
|
||||
|
||||
config = NetBoxAccessListsConfig
|
||||
|
||||
|
||||
@ -42,6 +42,7 @@ class AccessList(NetBoxModel):
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
class AccessListRule(NetBoxModel):
|
||||
access_list = models.ForeignKey(
|
||||
to=AccessList,
|
||||
@ -93,4 +94,3 @@ class AccessListRule(NetBoxModel):
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.access_list}: Rule {self.index}'
|
||||
|
||||
|
||||
@ -34,4 +34,3 @@ class AccessListRuleTable(NetBoxTable):
|
||||
'access_list', 'index', 'source_prefix', 'source_ports', 'destination_prefix',
|
||||
'destination_ports', 'protocol', 'action', 'actions',
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user