Fixed aesthetics.

This commit is contained in:
Alvaro Arriola 2019-10-10 16:52:29 +02:00
parent 4cb5b9f20d
commit 0b5214d247
29 changed files with 67 additions and 40 deletions

View file

@ -16,4 +16,4 @@ with file.open('r') as stream:
tenant_group, created = TenantGroup.objects.get_or_create(**params)
if created:
print("Created Tenant Group", tenant_group.name)
print("🔳 Created Tenant Group", tenant_group.name)

View file

@ -42,4 +42,4 @@ with file.open('r') as stream:
tenant.custom_field_values.add(custom_field_value)
print("Created Tenant", tenant.name)
print("👩‍💻 Created Tenant", tenant.name)

View file

@ -16,4 +16,4 @@ with file.open('r') as stream:
cluster_type, created = ClusterType.objects.get_or_create(**params)
if created:
print("Created Cluster Type", cluster_type.name)
print("🧰 Created Cluster Type", cluster_type.name)

View file

@ -16,4 +16,4 @@ with file.open('r') as stream:
rir, created = RIR.objects.get_or_create(**params)
if created:
print("Created RIR", rir.name)
print("🗺️ Created RIR", rir.name)

View file

@ -43,5 +43,4 @@ with file.open('r') as stream:
aggregate.custom_field_values.add(custom_field_value)
print("Created Aggregate", aggregate.prefix)
print("🗞️ Created Aggregate", aggregate.prefix)

View file

@ -54,4 +54,4 @@ with file.open('r') as stream:
cluster.custom_field_values.add(custom_field_value)
print("Created cluster", cluster.name)
print("🗄️ Created cluster", cluster.name)

View file

@ -43,5 +43,4 @@ with file.open('r') as stream:
vrf.custom_field_values.add(custom_field_value)
print("Created VRF", vrf.name)
print("📦 Created VRF", vrf.name)

View file

@ -16,4 +16,4 @@ with file.open('r') as stream:
role, created = Role.objects.get_or_create(**params)
if created:
print("Created Prefix/VLAN Role", role.name)
print("⛹️‍ Created Prefix/VLAN Role", role.name)

View file

@ -43,4 +43,4 @@ with file.open('r') as stream:
vlan_group.custom_field_values.add(custom_field_value)
print("Created VLAN Group", vlan_group.name)
print("🏘️ Created VLAN Group", vlan_group.name)

View file

@ -1,6 +1,6 @@
from dcim.models import Site
from ipam.models import VLAN, VLANGroup, Role
from tenancy.models import Tenant
from tenancy.models import Tenant, TenantGroup
from extras.models import CustomField, CustomFieldValue
from ruamel.yaml import YAML
@ -18,6 +18,7 @@ with file.open('r') as stream:
optional_assocs = {
'site': (Site, 'name'),
'tenant': (Tenant, 'name'),
'tenant_group': (TenantGroup, 'name'),
'group': (VLANGroup, 'name'),
'role': (Role, 'name')
}
@ -47,4 +48,4 @@ with file.open('r') as stream:
vlan.custom_field_values.add(custom_field_value)
print("Created VLAN", vlan.name)
print("🏠 Created VLAN", vlan.name)

View file

@ -1,6 +1,6 @@
from dcim.models import Site
from ipam.models import Prefix, VLAN, Role, VRF
from tenancy.models import Tenant
from tenancy.models import Tenant, TenantGroup
from extras.models import CustomField, CustomFieldValue
from ruamel.yaml import YAML
@ -19,6 +19,7 @@ with file.open('r') as stream:
optional_assocs = {
'site': (Site, 'name'),
'tenant': (Tenant, 'name'),
'tenant_group': (TenantGroup, 'name'),
'vlan': (VLAN, 'name'),
'role': (Role, 'name'),
'vrf': (VRF, 'name')
@ -50,4 +51,4 @@ with file.open('r') as stream:
prefix.custom_field_values.add(custom_field_value)
print("Created Prefix", prefix.prefix)
print("📌 Created Prefix", prefix.prefix)

View file

@ -56,4 +56,4 @@ with file.open('r') as stream:
virtual_machine.custom_field_values.add(custom_field_value)
print("Created virtual machine", virtual_machine.name)
print("🖥️ Created virtual machine", virtual_machine.name)

View file

@ -43,5 +43,4 @@ with file.open('r') as stream:
interface.custom_field_values.add(custom_field_value)
print("Created interface", interface.name, interface.virtual_machine.name)
print("🧷 Created interface", interface.name, interface.virtual_machine.name)

View file

@ -42,5 +42,5 @@ with file.open('r') as stream:
interface.custom_field_values.add(custom_field_value)
print("Created interface", interface.name, interface.device.name)
print("🧷 Created interface", interface.name, interface.device.name)

View file

@ -58,4 +58,4 @@ with file.open('r') as stream:
ip_address.custom_field_values.add(custom_field_value)
print("Created IP Address", ip_address.address)
print("🧬 Created IP Address", ip_address.address)