diff --git a/machines/migrations/0057_nas_autocapture_mac.py b/machines/migrations/0057_nas_autocapture_mac.py new file mode 100644 index 00000000..feefa25f --- /dev/null +++ b/machines/migrations/0057_nas_autocapture_mac.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2017-09-14 13:43 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0056_nas_port_access_mode'), + ] + + operations = [ + migrations.AddField( + model_name='nas', + name='autocapture_mac', + field=models.BooleanField(default=False), + ), + ] diff --git a/machines/models.py b/machines/models.py index c6c80a38..7f86d0c0 100644 --- a/machines/models.py +++ b/machines/models.py @@ -154,6 +154,7 @@ class Nas(models.Model): nas_type = models.ForeignKey('MachineType', on_delete=models.PROTECT, related_name='nas_type') machine_type = models.ForeignKey('MachineType', on_delete=models.PROTECT, related_name='machinetype_on_nas') port_access_mode = models.CharField(choices=AUTH, default=default_mode, max_length=32) + autocapture_mac = models.BooleanField(default=False) def __str__(self): return self.name diff --git a/machines/templates/machines/aff_nas.html b/machines/templates/machines/aff_nas.html index 8d0f35ed..dc8fd079 100644 --- a/machines/templates/machines/aff_nas.html +++ b/machines/templates/machines/aff_nas.html @@ -29,6 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,