# Generated by Django 3.2.3 on 2022-12-27 19:39

import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('vm', '0014_auto_20221010_1442'),
    ]

    operations = [
        migrations.AddField(
            model_name='instance',
            name='num_cores_max',
            field=models.IntegerField(default=2, help_text='Number of max virtual CPU cores available to the virtual machine.', validators=[django.core.validators.MinValueValidator(0)], verbose_name='number of cores'),
        ),
        migrations.AddField(
            model_name='instancetemplate',
            name='num_cores_max',
            field=models.IntegerField(default=2, help_text='Number of max virtual CPU cores available to the virtual machine.', validators=[django.core.validators.MinValueValidator(0)], verbose_name='number of cores'),
        ),
        migrations.AddField(
            model_name='namedbaseresourceconfig',
            name='num_cores_max',
            field=models.IntegerField(default=2, help_text='Number of max virtual CPU cores available to the virtual machine.', validators=[django.core.validators.MinValueValidator(0)], verbose_name='number of cores'),
        ),
        migrations.AlterField(
            model_name='instance',
            name='ci_network_config',
            field=models.TextField(blank=True, default="version: 2\nethernets:\n  ens3:\n    match:\n      macaddress: '{{ net.mac }}'\n    addresses: \n      - {{ net.ipv4 }}/{{ net.mask4 }}\n    gateway4: {{ net.gateway4 }}\n    nameservers:\n      addresses:\n        - 8.8.8.8", help_text='When cloud-init is active, set network-config(YAML format)', verbose_name='CI Network Data'),
        ),
        migrations.AlterField(
            model_name='instancetemplate',
            name='ci_network_config',
            field=models.TextField(blank=True, default="version: 2\nethernets:\n  ens3:\n    match:\n      macaddress: '{{ net.mac }}'\n    addresses: \n      - {{ net.ipv4 }}/{{ net.mask4 }}\n    gateway4: {{ net.gateway4 }}\n    nameservers:\n      addresses:\n        - 8.8.8.8", help_text='When cloud-init is active, set network-config(YAML format)', verbose_name='CI Network Data'),
        ),
    ]
