Skip to content

Commit 61c0a9b

Browse files
committed
Merge branch 'master' of https://github.com/axarriola/netbox-docker into axarriola-master
2 parents 723d474 + 992a8f1 commit 61c0a9b

14 files changed

+15
-18
lines changed

initializers/dcim_interfaces.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#- device: server01
22
# enabled: true
3-
# form_factor: Virtual
3+
# type: Virtual
44
# name: to-server02
55
#- device: server02
66
# enabled: true
7-
# form_factor: Virtual
7+
# type: Virtual
88
# name: to-server01

initializers/ip_addresses.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#- address: 10.1.1.1/24
22
# device: server01
3-
# interface: Loopback0
3+
# interface: to-server02
44
# status: Active
55
# vrf: vrf1
66
#- address: 10.1.1.2/24
77
# device: server02
8-
# interface: Vlan5
8+
# interface: to-server01
99
# status: Active
1010
#- address: 10.1.1.10/24
1111
# description: reserved IP

initializers/platforms.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
# # Allowed rpc clients are: juniper-junos, cisco-ios, opengear
21
# - name: Platform 1
32
# slug: platform-1
43
# manufacturer: Manufacturer 1
54
# napalm_driver: driver1
65
# napalm_args: "{'arg1': 'value1', 'arg2': 'value2'}"
7-
# rpc_client: juniper-junos
86
# - name: Platform 2
97
# slug: platform-2
108
# manufacturer: Manufacturer 2
119
# napalm_driver: driver2
1210
# napalm_args: "{'arg1': 'value1', 'arg2': 'value2'}"
13-
# rpc_client: opengear
1411
# - name: Platform 3
1512
# slug: platform-3
1613
# manufacturer: NoName
1714
# napalm_driver: driver3
1815
# napalm_args: "{'arg1': 'value1', 'arg2': 'value2'}"
19-
# rpc_client: juniper-junos

initializers/prefixes.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# vlan: vlan2
1313
# is_pool: true
1414
# vrf: vrf2
15-
# tenant: tenant2
1615
#- description: ipv6 prefix1
1716
# prefix: fd00:ccdd:a000:1::/64
1817
# site: AMS 2
File renamed without changes.

initializers/virtualization_interfaces.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# mac_address: 00:77:77:77:77:77
44
# mtu: 1500
55
# name: Network Interface 1
6-
# virtual_machine: virtual_machine1
6+
# virtual_machine: virtual machine 1
77
#- description: Network Interface 2
88
# enabled: true
99
# mac_address: 00:55:55:55:55:55
1010
# mtu: 1500
1111
# name: Network Interface 2
12-
# virtual_machine: virtual_machine1
12+
# virtual_machine: virtual machine 1

initializers/vlan_groups.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#- name: VLAN group 1
22
# site: AMS 1
3-
# slug: vlan-group-2
3+
# slug: vlan-group-1
44
#- name: VLAN group 2
55
# site: AMS 1
66
# slug: vlan-group-2

initializers/vrfs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
# name: vrf2
77
# rd: "6500:6500"
88
# tenant: tenant2
9-
# tenant_group: Tenant Group 2

startup_scripts/010_groups.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
group_permissions = group_details.get('permissions', [])
2828
if group_permissions:
2929
group.permissions.clear()
30-
print("Permissions:", group.permissions.all())
3130
for permission_codename in group_details.get('permissions', []):
3231
for permission in Permission.objects.filter(codename=permission_codename):
3332
group.permissions.add(permission)

startup_scripts/210_vlans.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
for vlan_status in VLAN_STATUS_CHOICES:
4040
if params['status'] in vlan_status:
4141
params['status'] = vlan_status[0]
42+
break
4243

4344
vlan, created = VLAN.objects.get_or_create(**params)
4445

0 commit comments

Comments
 (0)