From e894cdaa064fe902dab58772075e61c9392465e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=A4der?= Date: Sat, 12 Oct 2019 14:23:41 +0200 Subject: [PATCH] Reformat initializers and add some IPv6 examples --- initializers/aggregates.yml | 10 +++--- initializers/cluster_types.yml | 4 +-- initializers/clusters.yml | 10 +++--- initializers/dcim_interfaces.yml | 16 ++++----- initializers/device_types.yml | 2 +- initializers/ip_addresses.yml | 39 ++++++++++++++------- initializers/manufacturers.yml | 4 +-- initializers/platforms.yml | 2 +- initializers/prefix_vlan_roles.yml | 4 +-- initializers/prefixes.yml | 40 +++++++++++----------- initializers/rirs.yml | 15 ++++---- initializers/tenant_groups.yml | 8 ++--- initializers/tenants.yml | 10 +++--- initializers/virtual_machines.yml | 36 +++++++++---------- initializers/virtualization_interfaces.yml | 24 ++++++------- initializers/vlan_groups.yml | 12 +++---- initializers/vlans.yml | 22 ++++++------ initializers/vrfs.yml | 16 ++++----- 18 files changed, 146 insertions(+), 128 deletions(-) diff --git a/initializers/aggregates.yml b/initializers/aggregates.yml index 3dc65e6..d923a04 100644 --- a/initializers/aggregates.yml +++ b/initializers/aggregates.yml @@ -1,4 +1,6 @@ -#- prefix: 10.0.0.0/16 -# rir: RFC1918 -#- prefix: fd00:ccdd::/32 -# rir: RFC4193 ULA +# - prefix: 10.0.0.0/16 +# rir: RFC1918 +# - prefix: fd00:ccdd::/32 +# rir: RFC4193 ULA +# - prefix: 2001:db8::/32 +# rir: RFC3849 diff --git a/initializers/cluster_types.yml b/initializers/cluster_types.yml index 03365ae..136dd1d 100644 --- a/initializers/cluster_types.yml +++ b/initializers/cluster_types.yml @@ -1,2 +1,2 @@ -#- name: Hyper-V -# slug: hyper-v +# - name: Hyper-V +# slug: hyper-v diff --git a/initializers/clusters.yml b/initializers/clusters.yml index a8dc121..1b1aca0 100644 --- a/initializers/clusters.yml +++ b/initializers/clusters.yml @@ -1,5 +1,5 @@ -#- name: cluster1 -# type: Hyper-V -#- name: cluster2 -# type: Hyper-V -# site: SING 1 +# - name: cluster1 +# type: Hyper-V +# - name: cluster2 +# type: Hyper-V +# site: SING 1 diff --git a/initializers/dcim_interfaces.yml b/initializers/dcim_interfaces.yml index 9a73a47..18920fe 100644 --- a/initializers/dcim_interfaces.yml +++ b/initializers/dcim_interfaces.yml @@ -1,8 +1,8 @@ -#- device: server01 -# enabled: true -# type: Virtual -# name: to-server02 -#- device: server02 -# enabled: true -# type: Virtual -# name: to-server01 +# - device: server01 +# enabled: true +# type: Virtual +# name: to-server02 +# - device: server02 +# enabled: true +# type: Virtual +# name: to-server01 diff --git a/initializers/device_types.yml b/initializers/device_types.yml index d0e4c36..9b27da3 100644 --- a/initializers/device_types.yml +++ b/initializers/device_types.yml @@ -17,7 +17,7 @@ # custom_fields: # text_field: Description # - model: Other -# manufacturer: NoName +# manufacturer: No Name # slug: other # custom_fields: # text_field: Description diff --git a/initializers/ip_addresses.yml b/initializers/ip_addresses.yml index 29a3917..5738749 100644 --- a/initializers/ip_addresses.yml +++ b/initializers/ip_addresses.yml @@ -1,13 +1,26 @@ -#- address: 10.1.1.1/24 -# device: server01 -# interface: to-server02 -# status: Active -# vrf: vrf1 -#- address: 10.1.1.2/24 -# device: server02 -# interface: to-server01 -# status: Active -#- address: 10.1.1.10/24 -# description: reserved IP -# status: Reserved -# tenant: tenant1 +# - address: 10.1.1.1/24 +# device: server01 +# interface: to-server02 +# status: Active +# vrf: vrf1 +# - address: 2001:db8:a000:1::1/64 +# device: server01 +# interface: to-server02 +# status: Active +# vrf: vrf1 +# - address: 10.1.1.2/24 +# device: server02 +# interface: to-server01 +# status: Active +# - address: 2001:db8:a000:1::2/64 +# device: server02 +# interface: to-server01 +# status: Active +# - address: 10.1.1.10/24 +# description: reserved IP +# status: Reserved +# tenant: tenant1 +# - address: 2001:db8:a000:1::10/64 +# description: reserved IP +# status: Reserved +# tenant: tenant1 diff --git a/initializers/manufacturers.yml b/initializers/manufacturers.yml index d737a5f..023e8e1 100644 --- a/initializers/manufacturers.yml +++ b/initializers/manufacturers.yml @@ -2,5 +2,5 @@ # slug: manufacturer-1 # - name: Manufacturer 2 # slug: manufacturer-2 -# - name: NoName -# slug: noname +# - name: No Name +# slug: no-name diff --git a/initializers/platforms.yml b/initializers/platforms.yml index 732dbeb..b0b7ba3 100644 --- a/initializers/platforms.yml +++ b/initializers/platforms.yml @@ -10,6 +10,6 @@ # napalm_args: "{'arg1': 'value1', 'arg2': 'value2'}" # - name: Platform 3 # slug: platform-3 -# manufacturer: NoName +# manufacturer: No Name # napalm_driver: driver3 # napalm_args: "{'arg1': 'value1', 'arg2': 'value2'}" diff --git a/initializers/prefix_vlan_roles.yml b/initializers/prefix_vlan_roles.yml index 309acc9..0ea7720 100644 --- a/initializers/prefix_vlan_roles.yml +++ b/initializers/prefix_vlan_roles.yml @@ -1,2 +1,2 @@ -#- name: Main Management -# slug: main-management +# - name: Main Management +# slug: main-management diff --git a/initializers/prefixes.yml b/initializers/prefixes.yml index f70685c..a7e6815 100644 --- a/initializers/prefixes.yml +++ b/initializers/prefixes.yml @@ -1,20 +1,20 @@ -#- description: prefix1 -# prefix: 10.1.1.0/24 -# site: AMS 1 -# status: Active -# tenant: tenant1 -# vlan: vlan1 -#- description: prefix2 -# prefix: 10.1.2.0/24 -# site: AMS 2 -# status: Active -# tenant: tenant2 -# vlan: vlan2 -# is_pool: true -# vrf: vrf2 -#- description: ipv6 prefix1 -# prefix: fd00:ccdd:a000:1::/64 -# site: AMS 2 -# status: Active -# tenant: tenant2 -# vlan: vlan2 +# - description: prefix1 +# prefix: 10.1.1.0/24 +# site: AMS 1 +# status: Active +# tenant: tenant1 +# vlan: vlan1 +# - description: prefix2 +# prefix: 10.1.2.0/24 +# site: AMS 2 +# status: Active +# tenant: tenant2 +# vlan: vlan2 +# is_pool: true +# vrf: vrf2 +# - description: ipv6 prefix1 +# prefix: 2001:db8:a000:1::/64 +# site: AMS 2 +# status: Active +# tenant: tenant2 +# vlan: vlan2 diff --git a/initializers/rirs.yml b/initializers/rirs.yml index 1a0c84d..0aacd59 100644 --- a/initializers/rirs.yml +++ b/initializers/rirs.yml @@ -1,6 +1,9 @@ -#- is_private: true -# name: RFC1918 -# slug: rfc1918 -#- is_private: true -# name: RFC4193 ULA -# slug: rfc4193-ula +# - is_private: true +# name: RFC1918 +# slug: rfc1918 +# - is_private: true +# name: RFC4193 ULA +# slug: rfc4193-ula +# - is_private: true +# name: RFC3849 +# slug: rfc3849 diff --git a/initializers/tenant_groups.yml b/initializers/tenant_groups.yml index 53f0ce8..87ecd4d 100644 --- a/initializers/tenant_groups.yml +++ b/initializers/tenant_groups.yml @@ -1,4 +1,4 @@ -#- name: Tenant Group 1 -# slug: tenant-group-1 -#- name: Tenant Group 2 -# slug: tenant-group-2 +# - name: Tenant Group 1 +# slug: tenant-group-1 +# - name: Tenant Group 2 +# slug: tenant-group-2 diff --git a/initializers/tenants.yml b/initializers/tenants.yml index 86db54f..1dbfbe5 100644 --- a/initializers/tenants.yml +++ b/initializers/tenants.yml @@ -1,5 +1,5 @@ -#- name: tenant1 -# slug: tenant1 -#- name: tenant2 -# slug: tenant2 -# group: Tenant Group 2 +# - name: tenant1 +# slug: tenant1 +# - name: tenant2 +# slug: tenant2 +# group: Tenant Group 2 diff --git a/initializers/virtual_machines.yml b/initializers/virtual_machines.yml index ca61a80..5da75a2 100644 --- a/initializers/virtual_machines.yml +++ b/initializers/virtual_machines.yml @@ -1,18 +1,18 @@ -#- cluster: cluster1 -# comments: VM1 -# disk: 200 -# memory: 4096 -# name: virtual machine 1 -# platform: Platform 2 -# status: Active -# tenant: tenant1 -# vcpus: 8 -#- cluster: cluster1 -# comments: VM2 -# disk: 100 -# memory: 2048 -# name: virtual machine 2 -# platform: Platform 2 -# status: Active -# tenant: tenant1 -# vcpus: 8 +# - cluster: cluster1 +# comments: VM1 +# disk: 200 +# memory: 4096 +# name: virtual machine 1 +# platform: Platform 2 +# status: Active +# tenant: tenant1 +# vcpus: 8 +# - cluster: cluster1 +# comments: VM2 +# disk: 100 +# memory: 2048 +# name: virtual machine 2 +# platform: Platform 2 +# status: Active +# tenant: tenant1 +# vcpus: 8 diff --git a/initializers/virtualization_interfaces.yml b/initializers/virtualization_interfaces.yml index 37d3252..aeedd58 100644 --- a/initializers/virtualization_interfaces.yml +++ b/initializers/virtualization_interfaces.yml @@ -1,12 +1,12 @@ -#- description: Network Interface 1 -# enabled: true -# mac_address: 00:77:77:77:77:77 -# mtu: 1500 -# name: Network Interface 1 -# virtual_machine: virtual machine 1 -#- description: Network Interface 2 -# enabled: true -# mac_address: 00:55:55:55:55:55 -# mtu: 1500 -# name: Network Interface 2 -# virtual_machine: virtual machine 1 +# - description: Network Interface 1 +# enabled: true +# mac_address: 00:77:77:77:77:77 +# mtu: 1500 +# name: Network Interface 1 +# virtual_machine: virtual machine 1 +# - description: Network Interface 2 +# enabled: true +# mac_address: 00:55:55:55:55:55 +# mtu: 1500 +# name: Network Interface 2 +# virtual_machine: virtual machine 1 diff --git a/initializers/vlan_groups.yml b/initializers/vlan_groups.yml index 81546eb..3e0bb00 100644 --- a/initializers/vlan_groups.yml +++ b/initializers/vlan_groups.yml @@ -1,6 +1,6 @@ -#- name: VLAN group 1 -# site: AMS 1 -# slug: vlan-group-1 -#- name: VLAN group 2 -# site: AMS 1 -# slug: vlan-group-2 +# - name: VLAN group 1 +# site: AMS 1 +# slug: vlan-group-1 +# - name: VLAN group 2 +# site: AMS 1 +# slug: vlan-group-2 diff --git a/initializers/vlans.yml b/initializers/vlans.yml index c78f6ca..26532c7 100644 --- a/initializers/vlans.yml +++ b/initializers/vlans.yml @@ -1,11 +1,11 @@ -#- name: vlan1 -# site: AMS 1 -# status: Active -# vid: 5 -# role: Main Management -# description: VLAN 5 for MGMT -#- group: VLAN group 2 -# name: vlan2 -# site: AMS 1 -# status: Active -# vid: 1300 +# - name: vlan1 +# site: AMS 1 +# status: Active +# vid: 5 +# role: Main Management +# description: VLAN 5 for MGMT +# - group: VLAN group 2 +# name: vlan2 +# site: AMS 1 +# status: Active +# vid: 1300 diff --git a/initializers/vrfs.yml b/initializers/vrfs.yml index fd50d87..40b9031 100644 --- a/initializers/vrfs.yml +++ b/initializers/vrfs.yml @@ -1,8 +1,8 @@ -#- enforce_unique: true -# name: vrf1 -# tenant: tenant1 -# description: main VRF -#- enforce_unique: true -# name: vrf2 -# rd: "6500:6500" -# tenant: tenant2 +# - enforce_unique: true +# name: vrf1 +# tenant: tenant1 +# description: main VRF +# - enforce_unique: true +# name: vrf2 +# rd: "6500:6500" +# tenant: tenant2