From 39ed26e6e151a4c1ecefafd3a5a22b21dd8dfd6e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 30 Apr 2024 19:05:04 +0000 Subject: [PATCH] modify makefile with server deploy options. update readme --- .devcontainer/devcontainer.json | 2 +- datacenter/Makefile | 34 +++-- datacenter/README.md | 14 ++- .../group_vars/CONNECTED_ENDPOINTS.yml | 2 +- datacenter/domain-a/inventory.yml | 12 +- datacenter/domain-b/group_vars/FABRIC.yml | 2 +- .../lab_topology/FABRIC-act_topology.yml | 87 +------------ datacenter/domain-c/group_vars/DOMAIN_C.yml | 4 +- .../evpn_vxlan/NETWORK_SERVICES.yml | 2 +- datacenter/playbooks/fabric-build.yml | 2 + datacenter/playbooks/fabric-deploy-cv-ci.yml | 15 --- .../roles/act_topology_gen/defaults/main.yml | 4 +- .../templates/act-topology.j2 | 58 +++------ .../roles/act_topology_gen/vars/main.yml | 1 + datacenter/playbooks/server-deploy-cvp.yml | 40 ++++++ datacenter/playbooks/server-deploy-eapi.yml | 4 +- datacenter/server_configs/A1.cfg | 104 ---------------- datacenter/server_configs/A2.cfg | 104 ---------------- datacenter/server_configs/A3.cfg | 90 -------------- datacenter/server_configs/A4.cfg | 105 ---------------- datacenter/server_configs/A5.cfg | 96 --------------- datacenter/server_configs/A6.cfg | 95 -------------- datacenter/server_configs/B1.cfg | 97 --------------- datacenter/server_configs/B2.cfg | 97 --------------- datacenter/server_configs/B3.cfg | 83 ------------- datacenter/server_configs/B4.cfg | 98 --------------- datacenter/server_configs/B5.cfg | 83 ------------- datacenter/server_configs/B6.cfg | 91 -------------- datacenter/server_configs/B7.cfg | 83 ------------- datacenter/server_configs/C1.cfg | 99 --------------- datacenter/server_configs/C2.cfg | 93 -------------- datacenter/server_configs/C3.cfg | 89 -------------- datacenter/server_configs/C4.cfg | 83 ------------- datacenter/server_configs/C5.cfg | 98 --------------- datacenter/server_configs/C6.cfg | 89 -------------- datacenter/servers/inventory.yml | 116 ++++++++++++++++++ 36 files changed, 224 insertions(+), 1952 deletions(-) delete mode 100644 datacenter/playbooks/fabric-deploy-cv-ci.yml create mode 100644 datacenter/playbooks/server-deploy-cvp.yml delete mode 100644 datacenter/server_configs/A1.cfg delete mode 100644 datacenter/server_configs/A2.cfg delete mode 100644 datacenter/server_configs/A3.cfg delete mode 100644 datacenter/server_configs/A4.cfg delete mode 100644 datacenter/server_configs/A5.cfg delete mode 100644 datacenter/server_configs/A6.cfg delete mode 100644 datacenter/server_configs/B1.cfg delete mode 100644 datacenter/server_configs/B2.cfg delete mode 100644 datacenter/server_configs/B3.cfg delete mode 100644 datacenter/server_configs/B4.cfg delete mode 100644 datacenter/server_configs/B5.cfg delete mode 100644 datacenter/server_configs/B6.cfg delete mode 100644 datacenter/server_configs/B7.cfg delete mode 100644 datacenter/server_configs/C1.cfg delete mode 100644 datacenter/server_configs/C2.cfg delete mode 100644 datacenter/server_configs/C3.cfg delete mode 100644 datacenter/server_configs/C4.cfg delete mode 100644 datacenter/server_configs/C5.cfg delete mode 100644 datacenter/server_configs/C6.cfg create mode 100644 datacenter/servers/inventory.yml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b59dc2e..ca8375c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,4 +1,4 @@ { "name": "AVD Universal", - "image": "ghcr.io/aristanetworks/ansible-avd/universal:python3.11-avd-devel" + "image": "ghcr.io/aristanetworks/avd/universal:python3.11-avd-devel" } diff --git a/datacenter/Makefile b/datacenter/Makefile index e7c7fc2..4a01985 100644 --- a/datacenter/Makefile +++ b/datacenter/Makefile @@ -32,11 +32,7 @@ deploy-eapi-domain-a: ## Deploy Configs via eAPI .PHONY: deploy-cvp-domain-a deploy-cvp-domain-a: ## Deploy using CV CI workflow (i.e. workspaces, studios, etc) - ansible-playbook playbooks/fabric-deploy-cv-ci.yml -i domain-a/inventory.yml - -.PHONY: deploy-servers-domain-a -deploy-servers-domain-a: ## Deploy Server Configs via eAPI - ansible-playbook playbooks/server-deploy-eapi.yml -i domain-a/inventory.yml -e "target_hosts=DOMAIN_A_HOSTS" + ansible-playbook playbooks/fabric-deploy-cvp.yml -i domain-a/inventory.yml .PHONY: validate-domain-a validate-domain-a: @@ -59,12 +55,8 @@ deploy-eapi-domain-b: ## Deploy Configs via eAPI ansible-playbook playbooks/fabric-deploy-eapi.yml -i domain-b/inventory.yml .PHONY: deploy-cvp-domain-b -deploy-cvp-domain-b: ## Deploy using CV CI workflow (i.e. workspaces, studios, etc) - ansible-playbook playbooks/fabric-deploy-cv-ci.yml -i domain-b/inventory.yml - -.PHONY: deploy-servers-domain-b -deploy-servers-domain-b: ## Deploy Server Configs via eAPI - ansible-playbook playbooks/server-deploy-eapi.yml -i domain-b/inventory.yml -e "target_hosts=DOMAIN_B_HOSTS" +deploy-cvp-domain-b: ## Deploy Configs via CVP + ansible-playbook playbooks/fabric-deploy-cvp.yml -i domain-b/inventory.yml .PHONY: validate-domain-b validate-domain-b: @@ -88,11 +80,7 @@ deploy-eapi-domain-c: ## Deploy Configs via eAPI .PHONY: deploy-cvp-domain-c deploy-cvp-domain-c: ## Deploy using CV CI workflow (i.e. workspaces, studios, etc) - ansible-playbook playbooks/fabric-deploy-cv-ci.yml -i domain-c/inventory.yml - -.PHONY: deploy-servers-domain-c -deploy-servers-domain-c: ## Deploy Server Configs via eAPI - ansible-playbook playbooks/server-deploy-eapi.yml -i domain-c/inventory.yml -e "target_hosts=DOMAIN_C_HOSTS" + ansible-playbook playbooks/fabric-deploy-cvp.yml -i domain-c/inventory.yml .PHONY: validate-domain-c validate-domain-c: @@ -116,7 +104,7 @@ deploy-eapi-domain-d: ## Deploy Configs via eAPI .PHONY: deploy-cvp-domain-d deploy-cvp-domain-d: ## Deploy using CV CI workflow (i.e. workspaces, studios, etc) - ansible-playbook playbooks/fabric-deploy-cv-ci.yml -i domain-d/inventory.yml + ansible-playbook playbooks/fabric-deploy-cvp.yml -i domain-d/inventory.yml .PHONY: deploy-servers-domain-d deploy-servers-domain-d: ## Deploy Server Configs via eAPI @@ -144,8 +132,18 @@ deploy-backbone: ## Deploy Configs via eAPI .PHONY: deploy-cvp-backbone deploy-cvp-backbone: ## Deploy using CV CI workflow (i.e. workspaces, studios, etc) - ansible-playbook playbooks/fabric-deploy-cv-ci.yml -i backbone/inventory.yml + ansible-playbook playbooks/fabric-deploy-cvp.yml -i backbone/inventory.yml + +######################################################## +# Servers +######################################################## + +.PHONY: deploy-servers-eapi + ansible-playbook playbooks/servers-deploy-eapi.yml -i servers/inventory.yml +.PHONY: deploy-servers-cv + ansible-playbook playbooks/servers-deploy-cvp.yml -i servers/inventory.yml + ######################################################## # Replace domain inventory ansible_hosts with ACT inventory ansible_hosts ######################################################## diff --git a/datacenter/README.md b/datacenter/README.md index 540740c..ba87dc0 100644 --- a/datacenter/README.md +++ b/datacenter/README.md @@ -107,12 +107,22 @@ make build-domain-a build-domain-b build-domain-c build-domain-d build-domain-ba ``` ## Deploy -Deploy using eapi +Deploy Fabric using eapi ``` make deploy-eapi-domain- ``` -Deploy using cvp +Deploy Fabric using cvp ``` make deploy-cvp-domain- ``` + +Deploy Servers using eapi +``` +make deploy-servers-eapi +``` + +Deploy Servers using CVP +``` +make deploy-servers-cv +``` diff --git a/datacenter/domain-a/group_vars/CONNECTED_ENDPOINTS.yml b/datacenter/domain-a/group_vars/CONNECTED_ENDPOINTS.yml index 421470a..9afaa75 100644 --- a/datacenter/domain-a/group_vars/CONNECTED_ENDPOINTS.yml +++ b/datacenter/domain-a/group_vars/CONNECTED_ENDPOINTS.yml @@ -11,7 +11,7 @@ servers: - endpoint_ports: [ Ethernet1, Ethernet2 ] switch_ports: [ Ethernet7, Ethernet7 ] switches: [ A-LEAF1, A-LEAF2 ] - vlans: 20 + vlans: 10 profile: DEFAULT port_channel: description: A1 diff --git a/datacenter/domain-a/inventory.yml b/datacenter/domain-a/inventory.yml index 6b475ce..db6f7cc 100644 --- a/datacenter/domain-a/inventory.yml +++ b/datacenter/domain-a/inventory.yml @@ -73,27 +73,27 @@ all: ansible_ssh_pass: arista123 DOMAIN_A_HOSTS: hosts: - HostA: + A1: ansible_host: 10.18.146.142 ansible_user: cvpadmin ansible_ssh_pass: arista123 - HostB: + A2: ansible_host: 10.18.146.144 ansible_user: cvpadmin ansible_ssh_pass: arista123 - HostC: + A3: ansible_host: 10.18.145.133 ansible_user: cvpadmin ansible_ssh_pass: arista123 - HostD: + A4: ansible_host: 10.18.146.19 ansible_user: cvpadmin ansible_ssh_pass: arista123 - HostE: + A5: ansible_host: 10.18.145.121 ansible_user: cvpadmin ansible_ssh_pass: arista123 - HostF: + A6: ansible_host: 10.255.119.7 ansible_user: cvpadmin ansible_ssh_pass: arista123 diff --git a/datacenter/domain-b/group_vars/FABRIC.yml b/datacenter/domain-b/group_vars/FABRIC.yml index b359374..5f25e7d 100644 --- a/datacenter/domain-b/group_vars/FABRIC.yml +++ b/datacenter/domain-b/group_vars/FABRIC.yml @@ -7,7 +7,7 @@ overlay_routing_protocol: ibgp isis_area_id: 49.1111 evpn_short_esi_prefix: '0000:000b:' -#underlay_multicast: true +underlay_multicast: true p2p_uplinks_mtu: 1500 diff --git a/datacenter/domain-b/lab_topology/FABRIC-act_topology.yml b/datacenter/domain-b/lab_topology/FABRIC-act_topology.yml index e6dcc48..9ea2aff 100644 --- a/datacenter/domain-b/lab_topology/FABRIC-act_topology.yml +++ b/datacenter/domain-b/lab_topology/FABRIC-act_topology.yml @@ -1,17 +1,16 @@ + +# Global parameters for different node types veos: - # Define the global vEOS node parameters username: cvpadmin password: arista123 version: 4.31.2F generic: - # Define global generic node parameters username: cvpadmin password: arista123 version: ubuntu-2204-lts cvp: - # Define global cvp node parameters username: root password: cvproot version: 2023.3.0 @@ -71,28 +70,6 @@ nodes: ip_addr: 192.168.0.119 node_type: veos version: 4.31.2F - - B1: - ip_addr: 192.168.0.227 - node_type: veos - - B2: - ip_addr: 192.168.0.228 - node_type: veos - - B3: - ip_addr: 192.168.0.229 - node_type: veos - - B4: - ip_addr: 192.168.0.230 - node_type: veos - - B5: - ip_addr: 192.168.0.231 - node_type: veos - - B6: - ip_addr: 192.168.0.232 - node_type: veos - - B7: - ip_addr: 192.168.0.233 - node_type: veos - - act-cv: ip_addr: 192.168.0.5 node_type: cvp @@ -101,195 +78,135 @@ nodes: ip_addr: 192.168.0.6 node_type: generic links: - - connection: - B-LEAF1:Ethernet1 - B-SPINE1:Ethernet1 - - connection: - B-LEAF1:Ethernet2 - B-SPINE2:Ethernet1 - - connection: - B-LEAF1:Ethernet3 - B-SPINE3:Ethernet1 - - connection: - B-LEAF1:Ethernet4 - B-SPINE4:Ethernet1 - - connection: - B-LEAF1:Ethernet7 - B1:Ethernet1 - - connection: - B-LEAF1:Ethernet8 - B2:Ethernet1 - - connection: - B-LEAF2:Ethernet1 - B-SPINE1:Ethernet2 - - connection: - B-LEAF2:Ethernet2 - B-SPINE2:Ethernet2 - - connection: - B-LEAF2:Ethernet3 - B-SPINE3:Ethernet2 - - connection: - B-LEAF2:Ethernet4 - B-SPINE4:Ethernet2 - - connection: - B-LEAF2:Ethernet7 - B1:Ethernet2 - - connection: - B-LEAF2:Ethernet8 - B2:Ethernet2 - - connection: - B-LEAF3:Ethernet1 - B-SPINE1:Ethernet3 - - connection: - B-LEAF3:Ethernet2 - B-SPINE2:Ethernet3 - - connection: - B-LEAF3:Ethernet3 - B-SPINE3:Ethernet3 - - connection: - B-LEAF3:Ethernet4 - B-SPINE4:Ethernet3 - - connection: - B-LEAF3:Ethernet7 - B3:Ethernet1 - - connection: - B-LEAF3:Ethernet8 - B4:Ethernet1 - - connection: - B-LEAF4:Ethernet1 - B-SPINE1:Ethernet4 - - connection: - B-LEAF4:Ethernet2 - B-SPINE2:Ethernet4 - - connection: - B-LEAF4:Ethernet3 - B-SPINE3:Ethernet4 - - connection: - B-LEAF4:Ethernet4 - B-SPINE4:Ethernet4 - - connection: - B-LEAF4:Ethernet7 - B5:Ethernet1 - - connection: - B-LEAF4:Ethernet8 - B4:Ethernet2 - - connection: - B-LEAF5:Ethernet1 - B-SPINE1:Ethernet5 - - connection: - B-LEAF5:Ethernet2 - B-SPINE2:Ethernet5 - - connection: - B-LEAF5:Ethernet3 - B-SPINE3:Ethernet5 - - connection: - B-LEAF5:Ethernet4 - B-SPINE4:Ethernet5 - - connection: - B-LEAF6:Ethernet1 - B-SPINE1:Ethernet6 - - connection: - B-LEAF6:Ethernet2 - B-SPINE2:Ethernet6 - - connection: - B-LEAF6:Ethernet3 - B-SPINE3:Ethernet6 - - connection: - B-LEAF6:Ethernet4 - B-SPINE4:Ethernet6 - - connection: - B-LEAF7:Ethernet1 - B-SPINE1:Ethernet7 - - connection: - B-LEAF7:Ethernet2 - B-SPINE2:Ethernet7 - - connection: - B-LEAF7:Ethernet3 - B-SPINE3:Ethernet7 - - connection: - B-LEAF7:Ethernet4 - B-SPINE4:Ethernet7 - - - connection: - - B-LEAF7:Ethernet7 - - BB1:Ethernet3 - - - connection: - - B-LEAF7:Ethernet8 - - BB2:Ethernet3 - - connection: - B-LEAF8:Ethernet1 - B-SPINE1:Ethernet8 - - connection: - B-LEAF8:Ethernet2 - B-SPINE2:Ethernet8 - - connection: - B-LEAF8:Ethernet3 - B-SPINE3:Ethernet8 - - connection: - B-LEAF8:Ethernet4 - B-SPINE4:Ethernet8 - - - connection: - - B-LEAF8:Ethernet7 - - BB1:Ethernet4 - - - connection: - - B-LEAF8:Ethernet8 - - BB2:Ethernet4 - - connection: - B-SW1:Ethernet1 - B-LEAF5:Ethernet7 - - connection: - B-SW1:Ethernet2 - B-LEAF6:Ethernet7 - - connection: - B-SW1:Ethernet3 - B6:Ethernet1 - - connection: - B-SW1:Ethernet4 - B7:Ethernet1 diff --git a/datacenter/domain-c/group_vars/DOMAIN_C.yml b/datacenter/domain-c/group_vars/DOMAIN_C.yml index 89381cc..63dd2e2 100644 --- a/datacenter/domain-c/group_vars/DOMAIN_C.yml +++ b/datacenter/domain-c/group_vars/DOMAIN_C.yml @@ -9,8 +9,8 @@ spine: loopback_ipv4_pool: 1.1.3.0/24 vtep_loopback_ipv4_pool: 10.3.3.0/24 virtual_router_mac_address: 00:1c:73:00:00:01 - bgp_as: 65300 nodes: - + bgp_as: 65300 + nodes: - name: C-SPINE1 id: 201 mgmt_ip: 192.168.0.19/24 diff --git a/datacenter/global_vars/evpn_vxlan/NETWORK_SERVICES.yml b/datacenter/global_vars/evpn_vxlan/NETWORK_SERVICES.yml index 67886b3..83de313 100644 --- a/datacenter/global_vars/evpn_vxlan/NETWORK_SERVICES.yml +++ b/datacenter/global_vars/evpn_vxlan/NETWORK_SERVICES.yml @@ -206,7 +206,7 @@ svi_profiles: parent_profile: global-svi-profile ip_address_virtual: 10.70.70.1/24 ipv6_address_virtuals: - - '2001:db8:50:50::1/64' + - '2001:db8:70:70::1/64' ipv6_enable: true - profile: IPV6_VLAN90 parent_profile: global-svi-profile diff --git a/datacenter/playbooks/fabric-build.yml b/datacenter/playbooks/fabric-build.yml index e6ae88c..d70bd81 100644 --- a/datacenter/playbooks/fabric-build.yml +++ b/datacenter/playbooks/fabric-build.yml @@ -23,3 +23,5 @@ - name: gen act topo ansible.builtin.import_role: name: act_topology_gen + vars: + connected_endpoints: true diff --git a/datacenter/playbooks/fabric-deploy-cv-ci.yml b/datacenter/playbooks/fabric-deploy-cv-ci.yml deleted file mode 100644 index 8e1b8d9..0000000 --- a/datacenter/playbooks/fabric-deploy-cv-ci.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- - -- name: Configuration deployment - hosts: FABRIC - connection: local - gather_facts: false - tasks: - - name: Deploy configurations and tags to CloudVision - ansible.builtin.import_role: - name: arista.avd.deploy_to_cv - vars: - deploy_to_cv_accept_preview: true - cv_server: 10.255.53.196 - cv_token: "{{ lookup('env', 'CV_DEPLOY_TOKEN')}}" - cv_verify_certs: false diff --git a/datacenter/playbooks/roles/act_topology_gen/defaults/main.yml b/datacenter/playbooks/roles/act_topology_gen/defaults/main.yml index d073e63..9f72059 100755 --- a/datacenter/playbooks/roles/act_topology_gen/defaults/main.yml +++ b/datacenter/playbooks/roles/act_topology_gen/defaults/main.yml @@ -13,7 +13,6 @@ act_veos_password: "arista123" # Options to add cvp, ansible node and connected nodes to topology act_add_cvp: true act_add_ansible_node: true -# act_add_connected_nodes: false # Generic node options act_generic_user: "cvpadmin" @@ -29,5 +28,8 @@ act_cvp_password: "cvproot" act_cvp_instance_type: "singlenode" # Currently the only supported type act_cvp_ip: 192.168.0.5 +# Add AVD connected endpoints (servers) +connected_endpoints: false + # Default ACT configuration file generated act_configuration: '{{ lab_topology_dir }}/{{ fabric_name }}-act_topology.yml' diff --git a/datacenter/playbooks/roles/act_topology_gen/templates/act-topology.j2 b/datacenter/playbooks/roles/act_topology_gen/templates/act-topology.j2 index 1978881..291f290 100755 --- a/datacenter/playbooks/roles/act_topology_gen/templates/act-topology.j2 +++ b/datacenter/playbooks/roles/act_topology_gen/templates/act-topology.j2 @@ -1,30 +1,29 @@ {% if node_type_keys is arista.avd.defined %} -{% set node_types = node_type_keys | arista.avd.convert_dicts('key') | map(attribute="type") %} +{% set node_types = node_type_keys | arista.avd.convert_dicts('key') | map(attribute="type") %} {% else %} -{% set default_node_types = { - "l3ls-evpn": ["spine", "l3leaf", "l2leaf", "super-spine", "overlay-controller", "back-bone"], - "mpls": ["p", "pe", "rr"], - "l2ls": ["l3spine", "spine", "leaf"] - } %} -{% set node_types = default_node_types[design.type | arista.avd.default("l3ls-evpn")] %} +{% set default_node_types = { + "l3ls-evpn": ["spine", "l3leaf", "l2leaf", "super-spine", "overlay-controller", "back-bone"], + "mpls": ["p", "pe", "rr"], + "l2ls": ["l3spine", "spine", "leaf"] + } %} +{% set node_types = default_node_types[design.type | arista.avd.default("l3ls-evpn")] %} {% endif %} + +# Global parameters for different node types veos: - # Define the global vEOS node parameters username: {{ act_veos_username }} password: {{ act_veos_password }} version: {{ veos_version }} -{% if act_add_ansible_node %} +{% if act_add_ansible_node %} generic: - # Define global generic node parameters username: {{ act_generic_user }} password: {{ act_generic_password }} version: {{ act_generic_os_version }} {% endif %} -{% if act_add_cvp %} +{% if act_add_cvp %} cvp: - # Define global cvp node parameters username: {{ act_cvp_user }} password: {{ act_cvp_password }} version: {{ act_cvp_version }} @@ -33,25 +32,17 @@ cvp: # List of ACT nodes nodes: -{# Iterate through each node in the sorted fabric group #} {% for node in groups[fabric_name] | arista.avd.natural_sort %} -{# Get the hostvars for the current node #} {% set node_hostvars = hostvars[node] %} -{# Check if the current node's type is in the list of defined node types #} {% if node_hostvars.type | arista.avd.default('undefined') in node_types %} -{% if node_hostvars.switch.mgmt_ip is undefined %} - {# This will appear in the output if node_hostvars.switch.mgmt_ip is undefined #} - WARNING: node_hostvars.switch.mgmt_ip is undefined! -{% endif %} - {{ node }}: ip_addr: {{ node_hostvars.switch.mgmt_ip | ansible.utils.ipaddr('address') }} node_type: veos version: {{ veos_version }} {% endif %} {% endfor %} -{# add all non fabbric nodes #} {% if non_fabric_nodes %} - {{ non_fabric_nodes | to_nice_yaml(indent=2) | indent(2)}} + {{ non_fabric_nodes | to_nice_yaml(indent=2) | indent(2) }} {% endif %} {% if act_add_cvp %} - act-cv: @@ -67,35 +58,24 @@ nodes: node_type: generic {% endif %} links: -{# Initialize an empty list to store rendered connections #} {% set rendered_connections = [] %} -{# Iterate through each node in the sorted fabric group #} {% for node in groups[fabric_name] | arista.avd.natural_sort %} -{# Get the hostvars for the current node #} {% set node_hostvars = hostvars[node] %} -{# Iterate through the sorted ethernet_interfaces of the current node #} {% for ethernet_interface in node_hostvars.ethernet_interfaces | arista.avd.convert_dicts("name") | arista.avd.natural_sort("name") %} -{# Check if the peer_type of the current ethernet interface is in the list of defined node types or is 'mlag_peer' or 'server' #} -{% if ethernet_interface.peer_type | arista.avd.default('undefined') in node_types + ['mlag_peer'] + ['server'] + ['other'] %} -{# Get the peer for the current ethernet interface #} +{% set valid_types = node_types + ['mlag_peer'] %} +{% if connected_endpoints %} +{% set valid_types = valid_types + ['server'] %} +{% endif %} +{% if ethernet_interface.peer_type | arista.avd.default('undefined') in valid_types %} {% set peer = ethernet_interface.peer %} -{# Get the peer_interface for the current ethernet interface #} {% set peer_interface = ethernet_interface.peer_interface %} -{# Create a list with the current node and its peer #} -{% set endpoints = [node, peer] %} -{# Create a reversed list of the endpoints #} -{% set reverse_endpoints = [endpoints[1], endpoints[0]] %} -{# Create a connection string for the current node and its peer #} {% set connection_string = node ~ ":" ~ ethernet_interface.name ~ "," ~ peer ~ ":" ~ peer_interface %} -{# Create a reverse connection string for the current node and its peer #} {% set reverse_connection_string = peer ~ ":" ~ peer_interface ~ "," ~ node ~ ":" ~ ethernet_interface.name %} -{# Check if the connection string or its reverse has not been rendered yet #} -{% if not (connection_string in rendered_connections or reverse_connection_string in rendered_connections) %} +{% if not (connection_string in rendered_connections or reverse_connection_string in rendered_connections) %} - connection: - {{ node }}:{{ ethernet_interface.name }} - {{ peer }}:{{ peer_interface }} -{# Add the connection string to the rendered_connections list #} -{% set _dummy = rendered_connections.append(connection_string) %} +{% set _ = rendered_connections.append(connection_string) %} {% endif %} {% endif %} {% endfor %} diff --git a/datacenter/playbooks/roles/act_topology_gen/vars/main.yml b/datacenter/playbooks/roles/act_topology_gen/vars/main.yml index af985b7..4b17f9a 100755 --- a/datacenter/playbooks/roles/act_topology_gen/vars/main.yml +++ b/datacenter/playbooks/roles/act_topology_gen/vars/main.yml @@ -1,2 +1,3 @@ --- # vars file for act_topology_gen +non_fabric_nodes: diff --git a/datacenter/playbooks/server-deploy-cvp.yml b/datacenter/playbooks/server-deploy-cvp.yml new file mode 100644 index 0000000..a71a96f --- /dev/null +++ b/datacenter/playbooks/server-deploy-cvp.yml @@ -0,0 +1,40 @@ +--- + +- name: Deploy Configs + hosts: act_cv + gather_facts: false + tasks: + - name: Run CVP provisioning + ansible.builtin.import_role: + name: arista.avd.eos_config_deploy_cvp + vars: + container_root: 'SERVERS' + configlets_prefix: 'AVD' + device_filter: + - 'A1' + - 'A2' + - 'A3' + - 'A4' + - 'A5' + - 'A6' + - 'B1' + - 'B2' + - 'B3' + - 'B4' + - 'B5' + - 'B6' + - 'B7' + - 'C1' + - 'C2' + - 'C3' + - 'C4' + - 'C5' + - 'C6' + - 'D1' + - 'D2' + - 'D3' + - 'D4' + - 'D5' + - 'D6' + state: present + execute_tasks: false diff --git a/datacenter/playbooks/server-deploy-eapi.yml b/datacenter/playbooks/server-deploy-eapi.yml index 5a1efff..d77069e 100644 --- a/datacenter/playbooks/server-deploy-eapi.yml +++ b/datacenter/playbooks/server-deploy-eapi.yml @@ -1,12 +1,10 @@ --- - name: Deploy server configs - hosts: "{{ target_hosts }}" + hosts: SERVERS connection: local gather_facts: false vars: - # EOS Configuration Directory name - eos_config_dir_name: 'server_configs' ansible_user: cvpadmin ansible_password: arista123 ansible_network_os: arista.eos.eos diff --git a/datacenter/server_configs/A1.cfg b/datacenter/server_configs/A1.cfg deleted file mode 100644 index 4c38ed8..0000000 --- a/datacenter/server_configs/A1.cfg +++ /dev/null @@ -1,104 +0,0 @@ -! Command: show running-config -! device: HostA (vEOS-lab, EOS-4.30.2F) -! -! boot system flash:/CloudEOS.swi -! -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostA -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -system l1 - unsupported speed action error - unsupported error-correction action error -! -vlan 10 -! -management api http-commands - no shutdown -! -aaa authorization exec default local -! -interface Port-Channel1 - switchport access vlan 10 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.221/24 -! -interface Vlan10 - ip address 10.10.10.101/24 -! -monitor connectivity - no shutdown - ! - host Blue-Gateway - ip 10.10.10.1 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host A-HostE - ip 10.30.30.102 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host B-HostL - ip 10.40.40.102 - ! - host C-HostN - ip 10.10.10.104 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostR - ip 10.20.20.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.10.10.1 -ip route 10.20.20.0/24 10.10.10.1 -ip route 10.30.30.0/24 10.10.10.1 -ip route 10.40.40.0/24 10.10.10.1 -ip route 10.50.50.0/24 10.10.10.1 -ip route 10.60.60.0/24 10.10.10.1 -ip route 10.70.70.0/24 10.10.10.1 -! -end diff --git a/datacenter/server_configs/A2.cfg b/datacenter/server_configs/A2.cfg deleted file mode 100644 index 325a686..0000000 --- a/datacenter/server_configs/A2.cfg +++ /dev/null @@ -1,104 +0,0 @@ -! Command: show running-config -! device: HostB (vEOS-lab, EOS-4.30.2F) -! -! boot system flash:/CloudEOS.swi -! -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostB -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -system l1 - unsupported speed action error - unsupported error-correction action error -! -vlan 30 -! -management api http-commands - no shutdown -! -aaa authorization exec default local -! -interface Port-Channel1 - switchport access vlan 30 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.222/24 -! -interface Vlan30 - ip address 10.30.30.101/24 -! -monitor connectivity - no shutdown - ! - host Orange-Gateway - ip 10.30.30.1 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host A-HostE - ip 10.30.30.102 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host B-HostL - ip 10.40.40.102 - ! - host C-HostN - ip 10.10.10.104 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostR - ip 10.20.20.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.30.30.1 -ip route 10.20.20.0/24 10.30.30.1 -ip route 10.30.30.0/24 10.30.30.1 -ip route 10.40.40.0/24 10.30.30.1 -ip route 10.50.50.0/24 10.30.30.1 -ip route 10.60.60.0/24 10.30.30.1 -ip route 10.70.70.0/24 10.30.30.1 -! -end diff --git a/datacenter/server_configs/A3.cfg b/datacenter/server_configs/A3.cfg deleted file mode 100644 index f9fb7c7..0000000 --- a/datacenter/server_configs/A3.cfg +++ /dev/null @@ -1,90 +0,0 @@ -! Command: show running-config -! device: HostC (vEOS-lab, EOS-4.30.2F) -! -! boot system flash:/CloudEOS.swi -! -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostC -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -system l1 - unsupported speed action error - unsupported error-correction action error -! -vlan 50 -! -management api http-commands - no shutdown -! -aaa authorization exec default local -! -interface Ethernet1 - switchport access vlan 50 - switchport -! -interface Ethernet2 - no switchport -! -interface Management1 - ip address 192.168.0.223/24 -! -interface Vlan50 - ip address 10.50.50.101/24 -! -monitor connectivity - no shutdown - ! - host Yellow-Gateway - ip 10.50.50.1 - ! - host A-HostF - ip 10.70.70.101 - ! - host B-HostI - ip 10.60.60.101 - ! - host B-HostK - ip 10.70.70.102 - ! - host B-HostM - ip 10.80.80.101 - ! - host C-HostP - ip 10.60.60.102 - ! - host C-HostQ - ip 10.50.50.102 - ! - host C-HostS - ip 10.60.60.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.50.50.1 -ip route 10.20.20.0/24 10.50.50.1 -ip route 10.30.30.0/24 10.50.50.1 -ip route 10.40.40.0/24 10.50.50.1 -ip route 10.50.50.0/24 10.50.50.1 -ip route 10.60.60.0/24 10.50.50.1 -ip route 10.70.70.0/24 10.50.50.1 -! -end diff --git a/datacenter/server_configs/A4.cfg b/datacenter/server_configs/A4.cfg deleted file mode 100644 index ea5de58..0000000 --- a/datacenter/server_configs/A4.cfg +++ /dev/null @@ -1,105 +0,0 @@ -! Command: show running-config -! device: HostD (vEOS-lab, EOS-4.30.2F) -! -! boot system flash:/CloudEOS.swi -! -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostD -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -system l1 - unsupported speed action error - unsupported error-correction action error -! -vlan 10 -! -management api http-commands - no shutdown -! -aaa authorization exec default local -! -interface Port-Channel1 - switchport access vlan 10 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.224/24 -! -interface Vlan10 - ip address 10.10.10.102/24 -! -monitor connectivity - no shutdown - ! - host Blue-Gateway - ip 10.10.10.1 - ! - host A-HostA - ip 10.10.10.101 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostE - ip 10.30.30.102 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host B-HostL - ip 10.40.40.102 - ! - host C-HostN - ip 10.10.10.104 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostR - ip 10.20.20.103 -! -! -no ip routing -! -ip route 10.10.10.0/24 10.10.10.1 -ip route 10.20.20.0/24 10.10.10.1 -ip route 10.30.30.0/24 10.10.10.1 -ip route 10.40.40.0/24 10.10.10.1 -ip route 10.50.50.0/24 10.10.10.1 -ip route 10.60.60.0/24 10.10.10.1 -ip route 10.70.70.0/24 10.10.10.1 -! -end diff --git a/datacenter/server_configs/A5.cfg b/datacenter/server_configs/A5.cfg deleted file mode 100644 index 186a643..0000000 --- a/datacenter/server_configs/A5.cfg +++ /dev/null @@ -1,96 +0,0 @@ -! Command: show running-config -! device: HostE (vEOS-lab, EOS-4.30.2F) -! -! boot system flash:/CloudEOS.swi -! -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostE -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -system l1 - unsupported speed action error - unsupported error-correction action error -! -vlan 30 -! -management api http-commands - no shutdown -! -aaa authorization exec default local -! -interface Ethernet1 - switchport access vlan 30 - switchport -! -interface Management1 - ip address 192.168.0.225/24 -! -interface Vlan30 - ip address 10.30.30.102/24 -! -monitor connectivity - no shutdown - ! - host Orange-Gateway - ip 10.30.30.1 - ! - host A-HostA - ip 10.10.10.101 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host B-HostL - ip 10.40.40.102 - ! - host C-HostN - ip 10.10.10.104 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostR - ip 10.20.20.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.30.30.1 -ip route 10.20.20.0/24 10.30.30.1 -ip route 10.30.30.0/24 10.30.30.1 -ip route 10.40.40.0/24 10.30.30.1 -ip route 10.50.50.0/24 10.30.30.1 -ip route 10.60.60.0/24 10.30.30.1 -ip route 10.70.70.0/24 10.30.30.1 -! -end diff --git a/datacenter/server_configs/A6.cfg b/datacenter/server_configs/A6.cfg deleted file mode 100644 index 4740150..0000000 --- a/datacenter/server_configs/A6.cfg +++ /dev/null @@ -1,95 +0,0 @@ -! Command: show running-config -! device: HostF (vEOS-lab, EOS-4.30.2F) -! -! boot system flash:/CloudEOS.swi -! -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostF -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -system l1 - unsupported speed action error - unsupported error-correction action error -! -vlan 70 -! -management api http-commands - no shutdown -! -aaa authorization exec default local -! -interface Port-Channel1 - switchport access vlan 70 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.226/24 -! -interface Vlan70 - ip address 10.70.70.101/24 -! -monitor connectivity - no shutdown - ! - host Brown-Gateway - ip 10.70.70.1 - ! - host A-HostC - ip 10.50.50.101 - ! - host B-HostI - ip 10.60.60.101 - ! - host B-HostK - ip 10.70.70.102 - ! - host B-HostM - ip 10.80.80.101 - ! - host C-HostP - ip 10.60.60.102 - ! - host C-HostQ - ip 10.50.50.102 - ! - host C-HostS - ip 10.60.60.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.70.70.1 -ip route 10.20.20.0/24 10.70.70.1 -ip route 10.30.30.0/24 10.70.70.1 -ip route 10.40.40.0/24 10.70.70.1 -ip route 10.50.50.0/24 10.70.70.1 -ip route 10.60.60.0/24 10.70.70.1 -ip route 10.70.70.0/24 10.70.70.1 -! -end diff --git a/datacenter/server_configs/B1.cfg b/datacenter/server_configs/B1.cfg deleted file mode 100644 index cb56587..0000000 --- a/datacenter/server_configs/B1.cfg +++ /dev/null @@ -1,97 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostG -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 20 -! -management api http-commands - no shutdown -! -interface Port-Channel1 - switchport access vlan 20 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.227/24 -! -interface Vlan20 - ip address 10.20.20.101/24 -! -monitor connectivity - no shutdown - ! - host Green-Gateway - ip 10.20.20.1 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host B-HostL - ip 10.40.40.102 - ! - host A-HostA - ip 10.10.10.101 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host A-HostE - ip 10.30.30.102 - host C-HostN - ip 10.10.10.104 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostR - ip 10.20.20.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.20.20.1 -ip route 10.20.20.0/24 10.20.20.1 -ip route 10.30.30.0/24 10.20.20.1 -ip route 10.40.40.0/24 10.20.20.1 -ip route 10.50.50.0/24 10.20.20.1 -ip route 10.60.60.0/24 10.20.20.1 -ip route 10.70.70.0/24 10.20.20.1 -! -end diff --git a/datacenter/server_configs/B2.cfg b/datacenter/server_configs/B2.cfg deleted file mode 100644 index a92c6f3..0000000 --- a/datacenter/server_configs/B2.cfg +++ /dev/null @@ -1,97 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostH -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 40 -! -management api http-commands - no shutdown -! -interface Port-Channel1 - switchport access vlan 40 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.228/24 -! -interface Vlan40 - ip address 10.40.40.101/24 -! -monitor connectivity - no shutdown - ! - host Purple-Gateway - ip 10.40.40.1 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host B-HostL - ip 10.40.40.102 - ! - host A-HostA - ip 10.10.10.101 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host A-HostE - ip 10.30.30.102 - host C-HostN - ip 10.10.10.104 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostR - ip 10.20.20.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.40.40.1 -ip route 10.20.20.0/24 10.40.40.1 -ip route 10.30.30.0/24 10.40.40.1 -ip route 10.40.40.0/24 10.40.40.1 -ip route 10.50.50.0/24 10.40.40.1 -ip route 10.60.60.0/24 10.40.40.1 -ip route 10.70.70.0/24 10.40.40.1 -! -end diff --git a/datacenter/server_configs/B3.cfg b/datacenter/server_configs/B3.cfg deleted file mode 100644 index 8263a2b..0000000 --- a/datacenter/server_configs/B3.cfg +++ /dev/null @@ -1,83 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostI -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 60 -! -management api http-commands - no shutdown -! -interface Ethernet1 - switchport access vlan 60 - switchport -! -interface Ethernet2 -! -interface Management1 - ip address 192.168.0.229/24 -! -interface Vlan60 - ip address 10.60.60.101/24 -! -monitor connectivity - no shutdown - ! - host Red-Gateway - ip 10.60.60.1 - ! - host B-HostK - ip 10.70.70.102 - ! - host B-HostM - ip 10.80.80.101 - ! - host A-HostC - ip 10.50.50.101 - ! - host A-HostF - ip 10.70.70.101 - ! - host C-HostP - ip 10.60.60.102 - ! - host C-HostQ - ip 10.50.50.102 - ! - host C-HostS - ip 10.60.60.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.60.60.1 -ip route 10.20.20.0/24 10.60.60.1 -ip route 10.30.30.0/24 10.60.60.1 -ip route 10.40.40.0/24 10.60.60.1 -ip route 10.50.50.0/24 10.60.60.1 -ip route 10.60.60.0/24 10.60.60.1 -ip route 10.70.70.0/24 10.60.60.1 -! -end diff --git a/datacenter/server_configs/B4.cfg b/datacenter/server_configs/B4.cfg deleted file mode 100644 index 168ee6f..0000000 --- a/datacenter/server_configs/B4.cfg +++ /dev/null @@ -1,98 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostJ -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 10 -! -management api http-commands - no shutdown -! -interface Port-Channel1 - switchport access vlan 10 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.230/24 -! -interface Vlan10 - ip address 10.10.10.103/24 -! -monitor connectivity - no shutdown - ! - host Blue-Gateway - ip 10.10.10.1 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostL - ip 10.40.40.102 - ! - host A-HostA - ip 10.10.10.101 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host A-HostE - ip 10.30.30.102 - ! - host C-HostN - ip 10.10.10.104 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostR - ip 10.20.20.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.10.10.1 -ip route 10.20.20.0/24 10.10.10.1 -ip route 10.30.30.0/24 10.10.10.1 -ip route 10.40.40.0/24 10.10.10.1 -ip route 10.50.50.0/24 10.10.10.1 -ip route 10.60.60.0/24 10.10.10.1 -ip route 10.70.70.0/24 10.10.10.1 -! -end diff --git a/datacenter/server_configs/B5.cfg b/datacenter/server_configs/B5.cfg deleted file mode 100644 index 824019e..0000000 --- a/datacenter/server_configs/B5.cfg +++ /dev/null @@ -1,83 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostK -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 70 -! -management api http-commands - no shutdown -! -interface Ethernet1 - switchport access vlan 70 - switchport -! -interface Ethernet2 -! -interface Management1 - ip address 192.168.0.231/24 -! -interface Vlan70 - ip address 10.70.70.102/24 -! -monitor connectivity - no shutdown - ! - host Brown-Gateway - ip 10.70.70.1 - ! - host B-HostI - ip 10.60.60.101 - ! - host B-HostM - ip 10.80.80.101 - ! - host A-HostC - ip 10.50.50.101 - ! - host A-HostF - ip 10.70.70.101 - ! - host C-HostP - ip 10.60.60.102 - ! - host C-HostQ - ip 10.50.50.102 - ! - host C-HostS - ip 10.60.60.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.70.70.1 -ip route 10.20.20.0/24 10.70.70.1 -ip route 10.30.30.0/24 10.70.70.1 -ip route 10.40.40.0/24 10.70.70.1 -ip route 10.50.50.0/24 10.70.70.1 -ip route 10.60.60.0/24 10.70.70.1 -ip route 10.70.70.0/24 10.70.70.1 -! -end diff --git a/datacenter/server_configs/B6.cfg b/datacenter/server_configs/B6.cfg deleted file mode 100644 index 8f49696..0000000 --- a/datacenter/server_configs/B6.cfg +++ /dev/null @@ -1,91 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostL -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 40 -! -management api http-commands - no shutdown -! -interface Ethernet1 - switchport access vlan 40 - switchport -! -interface Ethernet2 -! -interface Management1 - ip address 192.168.0.232/24 -! -interface Vlan40 - ip address 10.40.40.102/24 -! -monitor connectivity - no shutdown - ! - host Purple-Gateway - ip 10.40.40.1 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host A-HostA - ip 10.10.10.101 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host A-HostE - ip 10.30.30.102 - host C-HostN - ip 10.10.10.104 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostR - ip 10.20.20.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.40.40.1 -ip route 10.20.20.0/24 10.40.40.1 -ip route 10.30.30.0/24 10.40.40.1 -ip route 10.40.40.0/24 10.40.40.1 -ip route 10.50.50.0/24 10.40.40.1 -ip route 10.60.60.0/24 10.40.40.1 -ip route 10.70.70.0/24 10.40.40.1 -! -end diff --git a/datacenter/server_configs/B7.cfg b/datacenter/server_configs/B7.cfg deleted file mode 100644 index 9ea79df..0000000 --- a/datacenter/server_configs/B7.cfg +++ /dev/null @@ -1,83 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostM -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 80 -! -management api http-commands - no shutdown -! -interface Ethernet1 - switchport access vlan 80 - switchport -! -interface Ethernet2 -! -interface Management1 - ip address 192.168.0.233/24 -! -interface Vlan80 - ip address 10.80.80.101/24 -! -monitor connectivity - no shutdown - ! - host Black-Gateway - ip 10.80.80.1 - ! - host B-HostI - ip 10.60.60.101 - ! - host B-HostK - ip 10.70.70.102 - ! - host A-HostC - ip 10.50.50.101 - ! - host A-HostF - ip 10.70.70.101 - ! - host C-HostP - ip 10.60.60.102 - ! - host C-HostQ - ip 10.50.50.102 - ! - host C-HostS - ip 10.60.60.103 -! -no ip routing -! -ip route 10.10.10.0/24 10.80.80.1 -ip route 10.20.20.0/24 10.80.80.1 -ip route 10.30.30.0/24 10.80.80.1 -ip route 10.40.40.0/24 10.80.80.1 -ip route 10.50.50.0/24 10.80.80.1 -ip route 10.60.60.0/24 10.80.80.1 -ip route 10.70.70.0/24 10.80.80.1 -! -end diff --git a/datacenter/server_configs/C1.cfg b/datacenter/server_configs/C1.cfg deleted file mode 100644 index 1a607c6..0000000 --- a/datacenter/server_configs/C1.cfg +++ /dev/null @@ -1,99 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostN -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 10 -! -management api http-commands - no shutdown -! -interface Port-Channel1 - switchport access vlan 10 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.234/24 -! -interface Vlan10 - ip address 10.10.10.104/24 -! -monitor connectivity - no shutdown - ! - host Blue-Gateway - ip 10.10.10.1 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostR - ip 10.20.20.103 - ! - host A-HostA - ip 10.10.10.101 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host A-HostE - ip 10.30.30.102 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host B-HostL - ip 10.40.40.102 - -! -no ip routing -! -ip route 10.10.10.0/24 10.10.10.1 -ip route 10.20.20.0/24 10.10.10.1 -ip route 10.30.30.0/24 10.10.10.1 -ip route 10.40.40.0/24 10.10.10.1 -ip route 10.50.50.0/24 10.10.10.1 -ip route 10.60.60.0/24 10.10.10.1 -ip route 10.70.70.0/24 10.10.10.1 -! -end diff --git a/datacenter/server_configs/C2.cfg b/datacenter/server_configs/C2.cfg deleted file mode 100644 index 54b5ec0..0000000 --- a/datacenter/server_configs/C2.cfg +++ /dev/null @@ -1,93 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostO -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 20 -! -management api http-commands - no shutdown -! -interface Ethernet1 - switchport access vlan 20 - switchport -! -interface Ethernet2 -! -interface Management1 - ip address 192.168.0.235/24 -! -interface Vlan20 - ip address 10.20.20.102/24 -! -monitor connectivity - no shutdown - ! - host Green-Gateway - ip 10.20.20.1 - ! - host C-HostN - ip 10.10.10.104 - ! - host C-HostR - ip 10.20.20.103 - ! - host A-HostA - ip 10.10.10.101 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host A-HostE - ip 10.30.30.102 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host B-HostL - ip 10.40.40.102 - -! -no ip routing -! -ip route 10.10.10.0/24 10.20.20.1 -ip route 10.20.20.0/24 10.20.20.1 -ip route 10.30.30.0/24 10.20.20.1 -ip route 10.40.40.0/24 10.20.20.1 -ip route 10.50.50.0/24 10.20.20.1 -ip route 10.60.60.0/24 10.20.20.1 -ip route 10.70.70.0/24 10.20.20.1 -! -end diff --git a/datacenter/server_configs/C3.cfg b/datacenter/server_configs/C3.cfg deleted file mode 100644 index 5fa7744..0000000 --- a/datacenter/server_configs/C3.cfg +++ /dev/null @@ -1,89 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostP -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 60 -! -management api http-commands - no shutdown -! -interface Port-Channel1 - switchport access vlan 60 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.236/24 -! -interface Vlan60 - ip address 10.60.60.102/24 -! -monitor connectivity - no shutdown - ! - host Red-Gateway - ip 10.60.60.1 - ! - host C-HostQ - ip 10.50.50.102 - ! - host C-HostS - ip 10.60.60.103 - ! - host B-HostI - ip 10.60.60.101 - ! - host B-HostK - ip 10.70.70.102 - ! - host B-HostM - ip 10.80.80.101 - ! - host A-HostC - ip 10.50.50.101 - ! - host A-HostF - ip 10.70.70.101 -! -no ip routing -! -ip route 10.10.10.0/24 10.60.60.1 -ip route 10.20.20.0/24 10.60.60.1 -ip route 10.30.30.0/24 10.60.60.1 -ip route 10.40.40.0/24 10.60.60.1 -ip route 10.50.50.0/24 10.60.60.1 -ip route 10.60.60.0/24 10.60.60.1 -ip route 10.70.70.0/24 10.60.60.1 -! -end diff --git a/datacenter/server_configs/C4.cfg b/datacenter/server_configs/C4.cfg deleted file mode 100644 index cb8c2d9..0000000 --- a/datacenter/server_configs/C4.cfg +++ /dev/null @@ -1,83 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostQ -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 50 -! -management api http-commands - no shutdown -! -interface Ethernet1 - switchport access vlan 50 - switchport -! -interface Ethernet2 -! -interface Management1 - ip address 192.168.0.237/24 -! -interface Vlan50 - ip address 10.50.50.102/24 -! -monitor connectivity - no shutdown - ! - host Yellow-Gateway - ip 10.50.50.1 - ! - host C-HostP - ip 10.60.60.102 - ! - host C-HostS - ip 10.60.60.103 - ! - host B-HostI - ip 10.60.60.101 - ! - host B-HostK - ip 10.70.70.102 - ! - host B-HostM - ip 10.80.80.101 - ! - host A-HostC - ip 10.50.50.101 - ! - host A-HostF - ip 10.70.70.101 -! -no ip routing -! -ip route 10.10.10.0/24 10.50.50.1 -ip route 10.20.20.0/24 10.50.50.1 -ip route 10.30.30.0/24 10.50.50.1 -ip route 10.40.40.0/24 10.50.50.1 -ip route 10.50.50.0/24 10.50.50.1 -ip route 10.60.60.0/24 10.50.50.1 -ip route 10.70.70.0/24 10.50.50.1 -! -end diff --git a/datacenter/server_configs/C5.cfg b/datacenter/server_configs/C5.cfg deleted file mode 100644 index 345915d..0000000 --- a/datacenter/server_configs/C5.cfg +++ /dev/null @@ -1,98 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostR -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 20 -! -management api http-commands - no shutdown -! -interface Port-Channel1 - switchport access vlan 20 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.238/24 -! -interface Vlan20 - ip address 10.20.20.103/24 -! -monitor connectivity - no shutdown - ! - host Green-Gateway - ip 10.20.20.1 - ! - host C-HostO - ip 10.20.20.102 - ! - host C-HostN - ip 10.10.10.104 - ! - host A-HostA - ip 10.10.10.101 - ! - host A-HostB - ip 10.30.30.101 - ! - host A-HostD - ip 10.10.10.102 - ! - host A-HostE - ip 10.30.30.102 - ! - host B-HostG - ip 10.20.20.101 - ! - host B-HostH - ip 10.40.40.101 - ! - host B-HostJ - ip 10.10.10.103 - ! - host B-HostL - ip 10.40.40.102 -! -no ip routing -! -ip route 10.10.10.0/24 10.20.20.1 -ip route 10.20.20.0/24 10.20.20.1 -ip route 10.30.30.0/24 10.20.20.1 -ip route 10.40.40.0/24 10.20.20.1 -ip route 10.50.50.0/24 10.20.20.1 -ip route 10.60.60.0/24 10.20.20.1 -ip route 10.70.70.0/24 10.20.20.1 -! -end diff --git a/datacenter/server_configs/C6.cfg b/datacenter/server_configs/C6.cfg deleted file mode 100644 index 26833af..0000000 --- a/datacenter/server_configs/C6.cfg +++ /dev/null @@ -1,89 +0,0 @@ -! boot system flash:/CloudEOS.swi -! -daemon TerminAttr - exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs - no shutdown -! -aaa authorization exec default local -! -no enable password -no aaa root -! -username admin privilege 15 role network-admin nopassword -username cvpadmin privilege 15 role network-admin secret sha512 $6$JIWpYntS5KpTMCGF$el6rGKnDYPqxKeMcJGutPctkOMiHrV/bej1DTmdTR8jEnuV/gQbTYa76slNHP1vwyN8Gq2kbNsMmXUwVhkwjy1 -! -agent KernelFib environment KERNELFIB_PROGRAM_ALL_ECMP='true' -! -switchport default mode routed -! -transceiver qsfp default-mode 4x10G -! -service routing protocols model ribd -! -hostname HostS -ip name-server vrf default 10.255.0.2 -dns domain act.lab -! -spanning-tree mode mstp -! -vlan 60 -! -management api http-commands - no shutdown -! -interface Port-Channel1 - switchport access vlan 60 - switchport -! -interface Ethernet1 - no switchport - channel-group 1 mode active -! -interface Ethernet2 - no switchport - channel-group 1 mode active -! -interface Management1 - ip address 192.168.0.239/24 -! -interface Vlan60 - ip address 10.60.60.103/24 -! -monitor connectivity - no shutdown - ! - host Red-Gateway - ip 10.60.60.1 - ! - host C-HostP - ip 10.60.60.102 - ! - host C-HostQ - ip 10.50.50.102 - ! - host B-HostI - ip 10.60.60.101 - ! - host B-HostK - ip 10.70.70.102 - ! - host B-HostM - ip 10.80.80.101 - ! - host A-HostC - ip 10.50.50.101 - ! - host A-HostF - ip 10.70.70.101 -! -no ip routing -! -ip route 10.10.10.0/24 10.60.60.1 -ip route 10.20.20.0/24 10.60.60.1 -ip route 10.30.30.0/24 10.60.60.1 -ip route 10.40.40.0/24 10.60.60.1 -ip route 10.50.50.0/24 10.60.60.1 -ip route 10.60.60.0/24 10.60.60.1 -ip route 10.70.70.0/24 10.60.60.1 -! -end diff --git a/datacenter/servers/inventory.yml b/datacenter/servers/inventory.yml new file mode 100644 index 0000000..2535842 --- /dev/null +++ b/datacenter/servers/inventory.yml @@ -0,0 +1,116 @@ +--- +all: + children: + CVP: + hosts: + act_cv: + ansible_httpapi_host: 10.18.156.170 + ansible_host: 10.18.156.170 + ansible_user: svc_account + ansible_password: "{{ lookup('file', '../act/tokens/act-cv.tok')}}" + ansible_connection: httpapi + ansible_network_os: eos + ansible_httpapi_use_ssl: True + ansible_httpapi_validate_certs: False + SERVERS: + hosts: + A1: + ansible_host: 10.18.156.240 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + A2: + ansible_host: 10.18.156.200 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + A3: + ansible_host: 10.18.156.236 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + A4: + ansible_host: 10.18.156.189 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + A5: + ansible_host: 10.18.156.195 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + A6: + ansible_host: 10.18.156.172 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + B1: + ansible_host: 10.18.156.211 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + B2: + ansible_host: 10.18.156.207 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + B3: + ansible_host: 10.18.156.175 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + B4: + ansible_host: 10.18.156.174 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + B5: + ansible_host: 10.18.156.225 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + B6: + ansible_host: 10.18.156.226 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + B7: + ansible_host: 10.18.156.176 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + C1: + ansible_host: 10.18.156.188 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + C2: + ansible_host: 10.18.156.244 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + C3: + ansible_host: 10.18.156.193 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + C4: + ansible_host: 10.18.156.181 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + C5: + ansible_host: 10.18.156.178 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + C6: + ansible_host: 10.18.156.221 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + D1: + ansible_host: 10.18.156.203 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + D2: + ansible_host: 10.18.156.191 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + D3: + ansible_host: 10.18.156.201 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + D4: + ansible_host: 10.18.156.219 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + D5: + ansible_host: 10.18.156.177 + ansible_user: cvpadmin + ansible_ssh_pass: arista123 + D6: + ansible_host: 10.18.156.199 + ansible_user: cvpadmin + ansible_ssh_pass: arista123