Commit 6d44647b by Bach Dániel

firewall: add managed field to vlan

parent 7af3e5f6
...@@ -225,6 +225,7 @@ class Vlan(AclBase, models.Model): ...@@ -225,6 +225,7 @@ class Vlan(AclBase, models.Model):
network_type = models.CharField(choices=CHOICES_NETWORK_TYPE, network_type = models.CharField(choices=CHOICES_NETWORK_TYPE,
verbose_name=_('network type'), verbose_name=_('network type'),
max_length=20) max_length=20)
managed = models.BooleanField(default=True, verbose_name=_('managed'))
description = models.TextField(blank=True, verbose_name=_('description'), description = models.TextField(blank=True, verbose_name=_('description'),
help_text=_( help_text=_(
'Description of the goals and elements ' 'Description of the goals and elements '
......
...@@ -218,6 +218,8 @@ class VlanForm(ModelForm): ...@@ -218,6 +218,8 @@ class VlanForm(ModelForm):
'Identity', 'Identity',
'name', 'name',
'vid', 'vid',
'network_type',
'managed',
), ),
Fieldset( Fieldset(
'IPv4', 'IPv4',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment