diff --git a/I2_SR_configs.tgz b/I2_SR_configs.tgz deleted file mode 100644 index 223e522..0000000 Binary files a/I2_SR_configs.tgz and /dev/null differ diff --git a/NetAutomationExamples b/NetAutomationExamples deleted file mode 160000 index 5677677..0000000 --- a/NetAutomationExamples +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 567767727bfc280ffc1c37afcfa36ee4bf0b2989 diff --git a/ansible.cfg b/ansible.cfg index d265922..c0cdd3d 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,8 +1,11 @@ [defaults] +inventory=hosts.ini roles_path = /srv/nslab-ansible/roles host_key_checking = False library = ./local/lib/python2.7/site-packages/napalm_ansible/modules:./lib/python2.7/site-packages/ansible/modules/ action_plugins = ./local/lib/python2.7/site-packages/napalm_ansible/plugins/action:./lib/python2.7/site-packages/ansible/plugins/actions +stdout_callback = debug +bin_ansible_callbacks = True [persistent_connection] command_timeout=100 diff --git a/backup.yml b/backup.yml deleted file mode 100644 index ec634ec..0000000 --- a/backup.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- - -- name: Network Getting Started First Playbook - hosts: vmx - gather_facts: false - tasks: - - - name: Backup JunOS config - junos_config: - backup: yes - register: backup_junos_location - when: ansible_network_os == 'junos' - - - name: Create backup dir - file: - path: "/tmp/backups/{{ inventory_hostname }}" - state: directory - recurse: yes - - - name: Copy backup files into /tmp/backups/ (junos) - copy: - src: "{{ backup_junos_location.backup_path }}" - dest: "/tmp/backups/{{ inventory_hostname }}/{{ inventory_hostname }}.bck" - when: ansible_network_os == 'junos' diff --git a/backup/ansible-veos5_config.2018-08-14@17:27:35 b/backup/ansible-veos5_config.2018-08-14@17:27:35 deleted file mode 100644 index 5f99981..0000000 --- a/backup/ansible-veos5_config.2018-08-14@17:27:35 +++ /dev/null @@ -1,29 +0,0 @@ -! Command: show running-config -! device: ansible-veos5 (vEOS, EOS-4.20.1F) -! -! boot system flash:/vEOS-lab.swi -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos5 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$QooVHYszFBY655A/$WnVBzmLe2LsWQ2kF01jtWff4L9xlxIfCpB0/rS7nWB70dFEoIbIYPRf1LHGg/jSGcR6VdecKvweJxry2vttCR1 -username salt privilege 15 role network-admin secret sha512 $6$gNfDGxuNqAufb7SS$XuBAZwDyHEX6Bt6zgDBA0zkJLhOm.5aJ8cwy2wd21DVr9yWr.gqwYBx7NUntbvSjTlKDQBg.XsMIIYRwqU10u1 -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet1 -! -interface Ethernet2 -! -interface Management1 - ip address 10.39.0.55/20 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -end \ No newline at end of file diff --git a/backup/ansible-veos6_config.2018-08-14@17:27:35 b/backup/ansible-veos6_config.2018-08-14@17:27:35 deleted file mode 100644 index 2c7e042..0000000 --- a/backup/ansible-veos6_config.2018-08-14@17:27:35 +++ /dev/null @@ -1,29 +0,0 @@ -! Command: show running-config -! device: ansible-veos6 (vEOS, EOS-4.20.1F) -! -! boot system flash:/vEOS-lab.swi -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos6 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$/7bApigLDgtwdZn4$8zr7AxxO2Lj2CXoV.fFWzmjrsusPfN453qwG/y76NCT7TNokv7XAZhJtgH6m82hwO14Y3W/zqyN4pHKitK1kO1 -username salt privilege 15 role network-admin secret sha512 $6$dUVSZEiQz8f5/ZTP$SMN1MWMaOLpyyUuBNjex/rVJL5WLw0SHi1MfOpdDAgPz1Fu7MMrHmJZ8.jU4kUjqC8xY.9VSp47m9MdqZl2Ck/ -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet1 -! -interface Ethernet2 -! -interface Management1 - ip address 10.39.0.56/20 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -end \ No newline at end of file diff --git a/backup/vmx1_config.2018-04-18@13:54:21 b/backup/vmx1_config.2018-04-18@13:54:21 deleted file mode 100644 index e9b251f..0000000 --- a/backup/vmx1_config.2018-04-18@13:54:21 +++ /dev/null @@ -1,102 +0,0 @@ -set version 15.1F6.9 -set system host-name nslab-vmx1 -set system root-authentication encrypted-password "$5$CRmQ12uP$4jBHGU7gqS7LxxQNBW7bnBdex2sZhzhV6UUprQIRZf1" -set system login user rancid uid 2000 -set system login user rancid class super-user -set system login user rancid authentication encrypted-password "$1$l62TnvVE$VWpKyk9XfHOP1FqIqFn2L1" -set system login user salt uid 2001 -set system login user salt class super-user -set system login user salt authentication encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293" -set system login user salt authentication ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt" -set system services ssh protocol-version v2 -set system services netconf ssh -set system syslog user * any emergency -set system syslog file messages any notice -set system syslog file messages authorization info -set system syslog file interactive-commands interactive-commands any -set system ntp boot-server 192.241.206.171 -set system ntp server 10.39.8.14 -deactivate system ntp server 10.39.8.14 -set system ntp server 129.6.15.29 -set system ntp source-address 10.39.8.10 -set chassis fpc 0 lite-mode -set interfaces ge-0/0/0 description "1000BaseT to nslab-vmx2 ge-0/0/0 test" -set interfaces ge-0/0/0 unit 0 family inet address 10.39.9.21/31 -set interfaces ge-0/0/0 unit 0 family iso -set interfaces ge-0/0/1 description "1000BaseT to nsdev-vmx6 ge-0/0/1" -set interfaces ge-0/0/1 unit 0 family inet address 10.39.9.34/31 -set interfaces ge-0/0/1 unit 0 family iso -set interfaces ge-0/0/1 unit 0 family mpls -set interfaces ge-0/0/2 description "1000BaseT to nslab-mx240-1 ge-1/0/9 via vmx1-p2p2" -set interfaces ge-0/0/2 unit 0 family inet address 10.39.9.23/31 -set interfaces ge-0/0/2 unit 0 family iso -set interfaces ge-0/0/3 description "1000BaseT to nslab-vmx7-cust1-ce1 ge-0/0/0" -set interfaces ge-0/0/3 unit 0 -set interfaces ge-0/0/4 unit 0 family inet -set interfaces fxp0 unit 0 family inet address 10.39.0.22/20 -set interfaces lo0 unit 0 family inet address 10.39.8.10/32 -set interfaces lo0 unit 0 family iso address 49.0000.0100.3900.8010.00 -set interfaces lo0 unit 4 family inet address 1.1.1.1/32 -set snmp community public authorization read-only -set routing-options static route 0.0.0.0/0 next-hop 10.39.0.1 -set routing-options static route 0.0.0.0/0 no-readvertise -set routing-options static route 0.0.0.0/0 preference 255 -set routing-options flow route test_discard then discard -set routing-options flow route test_discard match source 2.2.2.1/32 -deactivate routing-options flow route test_discard -set routing-options flow term-order standard -set routing-options router-id 10.39.8.10 -set routing-options autonomous-system 65150 -set routing-options validation group rpki-validator session 163.253.39.165 port 8282 -set protocols rsvp interface ge-0/0/1.0 -set protocols mpls label-switched-path vmx1-to-vmx3 to 10.39.8.12 -set protocols mpls label-switched-path vmx1-to-vmx6 to 10.39.8.15 -set protocols mpls interface lo0.0 -set protocols mpls interface ge-0/0/1.0 -set protocols bgp group CONNECTOR neighbor 10.39.10.1 description "vmx7-cust1-ce1 R&E Peering" -set protocols bgp group CONNECTOR neighbor 10.39.10.1 import vmx7-cust1-ce1-BGP-IN -set protocols bgp group CONNECTOR neighbor 10.39.10.1 export vmx7-cust1-ce1-BGP-OUT -set protocols bgp group CONNECTOR neighbor 10.39.10.1 peer-as 65151 -set protocols bgp group INTERNET2 type internal -set protocols bgp group INTERNET2 local-address 10.39.8.10 -set protocols bgp group INTERNET2 family inet flow -set protocols bgp group INTERNET2 family inet any -set protocols bgp group INTERNET2 family inet-vpn unicast -set protocols bgp group INTERNET2 family inet-vpn flow -set protocols bgp group INTERNET2 family inet6-vpn unicast -set protocols bgp group INTERNET2 peer-as 65150 -set protocols bgp group INTERNET2 neighbor 10.39.8.15 -set protocols bgp group INTERNET2 neighbor 10.39.8.14 -set protocols bgp group INTERNET2 neighbor 10.39.8.13 -set protocols bgp group INTERNET2 neighbor 10.39.8.12 -set protocols isis reference-bandwidth 1000g -set protocols isis level 1 disable -set protocols isis level 2 wide-metrics-only -set protocols isis interface ge-0/0/0.0 -set protocols isis interface ge-0/0/1.0 -set protocols isis interface ge-0/0/2.0 -set protocols isis interface ge-0/0/3.0 -set protocols isis interface lo0.0 -set protocols lldp port-id-subtype interface-name -set protocols lldp port-description-type interface-alias -set protocols lldp interface all -deactivate policy-options policy-statement nslab-tsg-bgp-in term 10 from route-filter 0.0.0.0/32 exact -set policy-options policy-statement nslab-tsg-bgp-in term 10 from route-filter 163.253.39.160/27 exact -set policy-options policy-statement nslab-tsg-bgp-in term 10 then accept -set policy-options policy-statement nslab-tsg-bgp-in then reject -set policy-options policy-statement nslab-tsg-bgp-out term 10 from protocol aggregate -set policy-options policy-statement nslab-tsg-bgp-out term 10 then accept -set policy-options policy-statement nslab-tsg-bgp-out term 20 then reject -set policy-options policy-statement nslab-tsg-bgp-out then reject -set policy-options policy-statement vmx7-cust1-ce1-BGP-IN term 10 from route-filter 172.168.8.0/24 exact -set policy-options policy-statement vmx7-cust1-ce1-BGP-IN term 10 then accept -set policy-options policy-statement vmx7-cust1-ce1-BGP-IN then reject -set policy-options policy-statement vmx7-cust1-ce1-BGP-OUT then accept -set routing-instances NTP instance-type vrf -set routing-instances NTP interface lo0.4 -set routing-instances NTP route-distinguisher 10.39.8.10:123 -set routing-instances NTP vrf-target target:123:123 -set routing-instances NTP vrf-table-label -set routing-instances NTP routing-options flow route test_vrf then discard -set routing-instances NTP routing-options flow route test_vrf match source 2.2.2.1/32 -set routing-instances NTP routing-options flow term-order standard \ No newline at end of file diff --git a/backup/vmx2_config.2018-04-18@13:54:20 b/backup/vmx2_config.2018-04-18@13:54:20 deleted file mode 100644 index 7670d06..0000000 --- a/backup/vmx2_config.2018-04-18@13:54:20 +++ /dev/null @@ -1,44 +0,0 @@ -set version 15.1F6.9 -set system host-name nslab-vmx2 -set system root-authentication encrypted-password "$5$7Z4KJmOq$Gfcu80MW1h04eXYAT08jw6FY3YJ4qUFK.nH.OeQBjH9" -set system login user rancid uid 2000 -set system login user rancid class super-user -set system login user rancid authentication encrypted-password "$1$l62TnvVE$VWpKyk9XfHOP1FqIqFn2L1" -set system login user salt uid 2001 -set system login user salt class super-user -set system login user salt authentication ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt" -set system services ssh protocol-version v2 -set system services netconf ssh -set system syslog user * any emergency -set system syslog user * match "!(.*Scheduler Oinker*.|.*Frame *.|.*ms without yielding*.);" -set system syslog file messages any notice -set system syslog file messages authorization info -set system syslog file interactive-commands interactive-commands any -set system ntp boot-server 192.241.206.171 -set system ntp server 10.39.8.14 -set system ntp source-address 10.39.8.11 -set chassis fpc 0 lite-mode -set interfaces ge-0/0/0 description "1000BaseT to nslab-vmx1 ge-0/0/0" -set interfaces ge-0/0/0 unit 0 family inet address 10.39.9.20/31 -set interfaces ge-0/0/0 unit 0 family iso -set interfaces ge-0/0/1 description "1000BaseT to nslab-vmx4 ge-0/0/0" -set interfaces ge-0/0/1 unit 0 family inet address 10.39.9.26/31 -set interfaces ge-0/0/1 unit 0 family iso -set interfaces ge-0/0/2 description "1000BaseT to nslab-vmx5:ge-0/0/2" -set interfaces ge-0/0/2 unit 0 family inet address 10.39.9.36/31 -set interfaces ge-0/0/2 unit 0 family iso -set interfaces fxp0 unit 0 family inet address 10.39.0.23/20 -set interfaces lo0 unit 0 family inet address 10.39.8.11/32 -set interfaces lo0 unit 0 family iso address 49.0000.0100.3900.8011.00 -set routing-options static route 0.0.0.0/0 next-hop 10.39.0.1 -set routing-options static route 0.0.0.0/0 no-readvertise -set routing-options static route 0.0.0.0/0 preference 255 -set protocols isis reference-bandwidth 1000g -set protocols isis level 1 disable -set protocols isis level 2 wide-metrics-only -set protocols isis interface ge-0/0/0.0 -set protocols isis interface ge-0/0/1.0 -set protocols isis interface ge-0/0/2.0 -set protocols isis interface lo0.0 -set protocols lldp port-id-subtype interface-name -set protocols lldp interface all \ No newline at end of file diff --git a/backup/vmx3_config.2018-04-18@13:54:23 b/backup/vmx3_config.2018-04-18@13:54:23 deleted file mode 100644 index c79ecfe..0000000 --- a/backup/vmx3_config.2018-04-18@13:54:23 +++ /dev/null @@ -1,72 +0,0 @@ -set version 15.1F6.9 -set system host-name nslab-vmx3 -set system root-authentication encrypted-password "$5$T4cqYSkh$kzSdkdnZGussQSb/c3MoJmKCyVVUjEN1KfObDwfhNoC" -set system login user rancid uid 2000 -set system login user rancid class super-user -set system login user rancid authentication encrypted-password "$1$l62TnvVE$VWpKyk9XfHOP1FqIqFn2L1" -set system login user salt uid 2001 -set system login user salt class super-user -set system login user salt authentication ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt" -set system services ssh protocol-version v2 -set system services netconf ssh -set system services netconf rfc-compliant -set system syslog user * any emergency -set system syslog file messages any notice -set system syslog file messages authorization info -set system syslog file interactive-commands interactive-commands any -set system ntp server 10.39.8.14 -set chassis fpc 0 lite-mode -set interfaces ge-0/0/0 description "1000BaseT to nslab-vmx4 ge-0/0/0" -set interfaces ge-0/0/0 unit 0 family inet address 10.39.9.28/31 -set interfaces ge-0/0/0 unit 0 family iso -set interfaces ge-0/0/0 unit 0 family mpls -set interfaces ge-0/0/1 description "1000BaseT to nslab-vmx2 ge-0/0/1" -set interfaces ge-0/0/1 unit 0 family inet address 10.39.9.27/31 -set interfaces ge-0/0/1 unit 0 family iso -set interfaces ge-0/0/2 description "1000BaseT to nslab-vmx8 ge-0/0/0" -set interfaces ge-0/0/2 unit 0 -set interfaces ge-0/0/3 description trex-port1 -set interfaces ge-0/0/3 unit 0 family inet address 2.2.2.2/24 -set interfaces fxp0 unit 0 family inet address 10.39.0.24/20 -set interfaces lo0 unit 0 family inet address 10.39.8.12/32 -set interfaces lo0 unit 0 family iso address 49.0000.0100.3900.8012.00 -set interfaces lo0 unit 4 family inet address 3.3.3.3/32 -set snmp community public authorization read-only -set snmp community public routing-instance NTP -set snmp routing-instance-access access-list * -set snmp traceoptions file snmp -set snmp traceoptions flag all -set routing-options static route 0.0.0.0/0 next-hop 10.39.0.1 -set routing-options static route 0.0.0.0/0 no-readvertise -set routing-options static route 0.0.0.0/0 preference 255 -set routing-options flow term-order standard -set routing-options router-id 10.39.8.12 -set routing-options autonomous-system 65150 -set protocols rsvp interface ge-0/0/0.0 -set protocols mpls label-switched-path vmx3-to-vmx1 to 10.39.8.10 -set protocols mpls interface ge-0/0/0.0 -set protocols bgp group INTERNET2 type internal -set protocols bgp group INTERNET2 local-address 10.39.8.12 -set protocols bgp group INTERNET2 family inet flow -set protocols bgp group INTERNET2 family inet any -set protocols bgp group INTERNET2 family inet-vpn unicast -set protocols bgp group INTERNET2 family inet-vpn flow -set protocols bgp group INTERNET2 family inet6-vpn unicast -set protocols bgp group INTERNET2 peer-as 65150 -set protocols bgp group INTERNET2 neighbor 10.39.8.15 -set protocols bgp group INTERNET2 neighbor 10.39.8.14 -set protocols bgp group INTERNET2 neighbor 10.39.8.13 -set protocols bgp group INTERNET2 neighbor 10.39.8.10 -set protocols isis level 1 disable -set protocols isis level 2 wide-metrics-only -set protocols isis interface ge-0/0/0.0 -set protocols isis interface ge-0/0/1.0 -set protocols isis interface lo0.0 -set protocols lldp port-id-subtype interface-name -set protocols lldp interface all -set routing-instances NTP instance-type vrf -set routing-instances NTP interface lo0.4 -set routing-instances NTP route-distinguisher 10.39.8.12:123 -set routing-instances NTP vrf-target target:123:123 -set routing-instances NTP vrf-table-label -set routing-instances NTP routing-options flow term-order standard \ No newline at end of file diff --git a/backup/vmx4_config.2018-04-18@13:54:21 b/backup/vmx4_config.2018-04-18@13:54:21 deleted file mode 100644 index ca23b0e..0000000 --- a/backup/vmx4_config.2018-04-18@13:54:21 +++ /dev/null @@ -1,64 +0,0 @@ -set version 15.1F6.9 -set system host-name nslab-vmx4 -set system root-authentication encrypted-password "$5$B6X5NhtH$wGQuvhwZRwdG9q1p3vvzgcFAmpjGhcVJSOC0RWbBxBB" -set system login user rancid uid 2000 -set system login user rancid class super-user -set system login user rancid authentication encrypted-password "$1$l62TnvVE$VWpKyk9XfHOP1FqIqFn2L1" -set system login user salt uid 2001 -set system login user salt class super-user -set system login user salt authentication ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt" -set system services ssh protocol-version v2 -set system services netconf ssh -set system syslog user * any emergency -set system syslog file messages any notice -set system syslog file messages authorization info -set system syslog file interactive-commands interactive-commands any -set system ntp server 10.39.8.14 -set chassis fpc 0 lite-mode -set chassis network-services enhanced-ip -set interfaces ge-0/0/0 description "1000BaseT to nslab-vmx3 ge-0/0/0" -set interfaces ge-0/0/0 unit 0 family inet address 10.39.9.29/31 -set interfaces ge-0/0/0 unit 0 family iso -set interfaces ge-0/0/0 unit 0 family mpls -set interfaces ge-0/0/1 description "1000BaseT to nsdev-vmx5 ge-0/0/0" -set interfaces ge-0/0/1 unit 0 family inet address 10.39.9.30/31 -set interfaces ge-0/0/1 unit 0 family iso -set interfaces ge-0/0/1 unit 0 family mpls -set interfaces fxp0 unit 0 family inet address 10.39.0.25/20 -set interfaces lo0 unit 0 family inet address 10.39.8.13/32 -set interfaces lo0 unit 0 family iso address 49.0000.0100.3900.8013.00 -set interfaces lo0 unit 4 family inet address 4.4.4.4/32 -set routing-options static route 0.0.0.0/0 next-hop 10.39.0.1 -set routing-options static route 0.0.0.0/0 no-readvertise -set routing-options static route 0.0.0.0/0 preference 255 -set routing-options router-id 10.39.8.13 -set routing-options autonomous-system 65150 -set protocols rsvp interface ge-0/0/1.0 -set protocols rsvp interface ge-0/0/0.0 -set protocols mpls label-switched-path vmx4-vmx6 to 10.39.8.15 -set protocols mpls label-switched-path vmx4-to-vmx-5 to 10.39.8.14 -set protocols mpls interface all -set protocols bgp local-address 10.39.8.13 -set protocols bgp log-updown -set protocols bgp group INTERNET2 type internal -set protocols bgp group INTERNET2 local-address 10.39.8.13 -set protocols bgp group INTERNET2 family inet any -set protocols bgp group INTERNET2 family inet-vpn unicast -set protocols bgp group INTERNET2 family inet6-vpn unicast -set protocols bgp group INTERNET2 peer-as 65150 -set protocols bgp group INTERNET2 neighbor 10.39.8.15 -set protocols bgp group INTERNET2 neighbor 10.39.8.14 -set protocols bgp group INTERNET2 neighbor 10.39.8.10 -set protocols bgp group INTERNET2 neighbor 10.39.8.12 -set protocols isis level 1 disable -set protocols isis level 2 wide-metrics-only -set protocols isis interface ge-0/0/0.0 -set protocols isis interface ge-0/0/1.0 -set protocols isis interface lo0.0 -set protocols lldp port-id-subtype interface-name -set protocols lldp interface all -set routing-instances NTP instance-type vrf -set routing-instances NTP interface lo0.4 -set routing-instances NTP route-distinguisher 10.39.8.13:123 -set routing-instances NTP vrf-target target:123:123 -set routing-instances NTP vrf-table-label \ No newline at end of file diff --git a/backup/vmx5_config.2018-04-18@13:54:23 b/backup/vmx5_config.2018-04-18@13:54:23 deleted file mode 100644 index 5fbccf7..0000000 --- a/backup/vmx5_config.2018-04-18@13:54:23 +++ /dev/null @@ -1,86 +0,0 @@ -set version 15.1F6.9 -set system host-name nslab-vmx5 -set system root-authentication encrypted-password "$5$dtzjbbOB$kRjqCbWTMGPGR182yFSH/yD1dUEt7uKn1DHEaQUWgt6" -set system login user rancid uid 2000 -set system login user rancid class super-user -set system login user rancid authentication encrypted-password "$1$l62TnvVE$VWpKyk9XfHOP1FqIqFn2L1" -set system login user salt uid 2001 -set system login user salt class super-user -set system login user salt authentication ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt" -set system services ssh protocol-version v2 -set system services netconf ssh -set system syslog user * any emergency -set system syslog user * match "!(.*Scheduler Oinker*.|.*Frame *.|.*ms without yielding*.);" -set system syslog file messages any any -set system syslog file messages authorization info -set system syslog file messages match "!(.*Scheduler Oinker*.|.*Frame *.|.*ms without yielding*.);" -set system syslog file interactive-commands interactive-commands any -set system ntp server 132.163.97.4 -deactivate system ntp server 132.163.97.4 -set system ntp server 10.39.8.14 -deactivate system ntp server 10.39.8.14 -set system ntp server 129.6.15.29 -deactivate system ntp server 129.6.15.29 -set system ntp server 10.39.8.10 -deactivate system ntp server 10.39.8.10 -set system ntp server 163.253.39.173 -set chassis fpc 0 lite-mode -set interfaces ge-0/0/0 description "1000BaseT to nslab-vmx4 ge-0/0/1" -set interfaces ge-0/0/0 unit 0 family inet address 10.39.9.31/31 -set interfaces ge-0/0/0 unit 0 family iso -set interfaces ge-0/0/0 unit 0 family mpls -set interfaces ge-0/0/1 description "1000BaseT to nslab-vmx6 ge-0/0/0" -set interfaces ge-0/0/1 unit 0 family inet address 10.39.9.32/31 -set interfaces ge-0/0/1 unit 0 family iso -set interfaces ge-0/0/1 unit 0 family mpls -set interfaces ge-0/0/2 description "1000BaseT to nslab-vmx2:ge-0/0/2" -set interfaces ge-0/0/2 unit 0 family inet address 10.39.9.37/31 -set interfaces ge-0/0/2 unit 0 family iso -set interfaces fxp0 unit 0 family inet address 10.39.0.26/20 -set interfaces lo0 unit 0 family inet address 10.39.8.14/32 -set interfaces lo0 unit 0 family iso address 49.0000.0100.3900.8014.00 -set interfaces lo0 unit 4 family inet filter input loopback-strict-in -set interfaces lo0 unit 4 family inet address 5.5.5.5/32 -set snmp community public authorization read-only -set routing-options static route 0.0.0.0/0 next-hop 10.39.0.1 -set routing-options static route 0.0.0.0/0 no-readvertise -set routing-options static route 0.0.0.0/0 preference 255 -set routing-options autonomous-system 65150 -set protocols rsvp interface ge-0/0/0.0 -set protocols rsvp interface ge-0/0/1.0 -set protocols mpls label-switched-path vmx5-to-vmx4 to 10.39.8.13 -set protocols mpls label-switched-path vmx5-to-vmx6 to 10.39.8.15 -set protocols mpls interface all -set protocols bgp log-updown -set protocols bgp group INTERNET2 type internal -set protocols bgp group INTERNET2 local-address 10.39.8.14 -set protocols bgp group INTERNET2 family inet any -set protocols bgp group INTERNET2 family inet-vpn unicast -set protocols bgp group INTERNET2 family inet6-vpn unicast -set protocols bgp group INTERNET2 peer-as 65150 -set protocols bgp group INTERNET2 neighbor 10.39.8.15 -set protocols bgp group INTERNET2 neighbor 10.39.8.13 -set protocols bgp group INTERNET2 neighbor 10.39.8.10 -set protocols bgp group INTERNET2 neighbor 10.39.8.12 -set protocols isis reference-bandwidth 1000g -set protocols isis level 1 disable -set protocols isis level 2 wide-metrics-only -set protocols isis interface ge-0/0/0.0 -set protocols isis interface ge-0/0/1.0 -set protocols isis interface ge-0/0/2.0 -set protocols isis interface lo0.0 -set protocols lldp port-id-subtype interface-name -set protocols lldp interface all -set firewall family inet filter loopback-strict-in term lsp-ping-discard from port 3503 -set firewall family inet filter loopback-strict-in term lsp-ping-discard then count lsp-ping-discard -set firewall family inet filter loopback-strict-in term lsp-ping-discard then log -set firewall family inet filter loopback-strict-in term lsp-ping-discard then discard -set firewall family inet filter loopback-strict-out term block-nist from address 129.6.15.29/32 -set firewall family inet filter loopback-strict-out term block-nist then count nist -set firewall family inet filter loopback-strict-out term block-nist then discard -set firewall family inet filter loopback-strict-out term accept then accept -set routing-instances NTP instance-type vrf -set routing-instances NTP interface lo0.4 -set routing-instances NTP route-distinguisher 10.39.8.14:123 -set routing-instances NTP vrf-target target:123:123 -set routing-instances NTP vrf-table-label \ No newline at end of file diff --git a/backup/vmx6_config.2018-04-18@13:54:22 b/backup/vmx6_config.2018-04-18@13:54:22 deleted file mode 100644 index 2143a71..0000000 --- a/backup/vmx6_config.2018-04-18@13:54:22 +++ /dev/null @@ -1,70 +0,0 @@ -set version 15.1F6.9 -set system host-name nsdev-vmx6 -set system root-authentication encrypted-password "$5$qRd0mli.$29xCBLe2nBf4MX2awxZA7wf6yD4kx5OTHyge.b9iGmA" -set system login user rancid uid 2000 -set system login user rancid class super-user -set system login user rancid authentication encrypted-password "$1$l62TnvVE$VWpKyk9XfHOP1FqIqFn2L1" -set system login user salt uid 2001 -set system login user salt class super-user -set system login user salt authentication ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt" -set system services ssh protocol-version v2 -set system services netconf ssh -set system syslog user * any emergency -set system syslog file messages any notice -set system syslog file messages authorization info -set system syslog file interactive-commands interactive-commands any -set system ntp server 10.39.8.14 -set chassis fpc 0 lite-mode -set chassis network-services enhanced-ip -set interfaces ge-0/0/0 description "1000BaseT to nslab-vmx5 ge-0/0/1" -set interfaces ge-0/0/0 unit 0 family inet address 10.39.9.33/31 -set interfaces ge-0/0/0 unit 0 family iso -set interfaces ge-0/0/0 unit 0 family mpls -set interfaces ge-0/0/1 description "1000BaseT to nslab-vmx10-cust4-ce1 ge-0/0/0" -set interfaces ge-0/0/1 unit 0 -set interfaces ge-0/0/2 description "1000BaseT to nslab-vmx1 ge-0/0/3" -set interfaces ge-0/0/2 unit 0 family inet address 10.39.9.35/31 -set interfaces ge-0/0/2 unit 0 family iso -set interfaces ge-0/0/2 unit 0 family mpls -set interfaces ge-0/0/3 description unused -set interfaces ge-0/0/4 unit 0 -set interfaces fxp0 unit 0 family inet address 10.39.0.27/20 -set interfaces lo0 unit 0 family inet address 10.39.8.15/32 -set interfaces lo0 unit 0 family iso address 49.0000.0100.3900.8015.00 -set interfaces lo0 unit 4 family inet address 6.6.6.6/32 -set routing-options static route 0.0.0.0/0 next-hop 10.39.0.1 -set routing-options static route 0.0.0.0/0 no-readvertise -set routing-options static route 0.0.0.0/0 preference 255 -set routing-options static route 16.0.0.0/8 next-hop 1.1.1.1 -set routing-options static route 48.0.0.0/8 next-hop 2.2.2.1 -set routing-options router-id 10.39.8.15 -set routing-options autonomous-system 65150 -set protocols rsvp interface ge-0/0/0.0 -set protocols rsvp interface ge-0/0/2.0 -set protocols mpls label-switched-path vmx6-vmx4 to 10.39.8.13 -set protocols mpls label-switched-path vmx6-to-vmx5 to 10.39.8.14 -set protocols mpls label-switched-path vmx6-to-vmx1 to 10.39.8.10 -set protocols mpls interface all -set protocols bgp log-updown -set protocols bgp group INTERNET2 type internal -set protocols bgp group INTERNET2 local-address 10.39.8.15 -set protocols bgp group INTERNET2 family inet any -set protocols bgp group INTERNET2 family inet-vpn unicast -set protocols bgp group INTERNET2 family inet6-vpn unicast -set protocols bgp group INTERNET2 peer-as 65150 -set protocols bgp group INTERNET2 neighbor 10.39.8.14 -set protocols bgp group INTERNET2 neighbor 10.39.8.13 -set protocols bgp group INTERNET2 neighbor 10.39.8.10 -set protocols bgp group INTERNET2 neighbor 10.39.8.12 -set protocols isis level 2 wide-metrics-only -set protocols isis level 1 disable -set protocols isis interface ge-0/0/0.0 -set protocols isis interface ge-0/0/2.0 -set protocols isis interface lo0.0 -set protocols lldp port-id-subtype interface-name -set protocols lldp interface all -set routing-instances NTP instance-type vrf -set routing-instances NTP interface lo0.4 -set routing-instances NTP route-distinguisher 10.39.8.15:123 -set routing-instances NTP vrf-target target:123:123 -set routing-instances NTP vrf-table-label \ No newline at end of file diff --git a/core/core-model-sr.yml b/core/core-model-sr.yml deleted file mode 100644 index f0430b7..0000000 --- a/core/core-model-sr.yml +++ /dev/null @@ -1,132 +0,0 @@ ---- - -common: - bgp_asn: 65000 - -nodes: - - name: sr-vmx1 - mgmt: 10.39.0.57 - rid: 192.168.0.1 - sid: 10 - iso: 49.0001.0010.0100.1001.00 - - - name: sr-vmx2 - mgmt: 10.39.0.58 - rid: 192.168.0.2 - sid: 20 - iso: 49.0001.0010.0100.1002.00 - - - name: sr-vmx3 - mgmt: 10.39.0.59 - rid: 192.168.0.3 - sid: 30 - iso: 49.0001.0010.0100.1003.00 - - - name: sr-vmx4 - mgmt: 10.39.0.60 - rid: 192.168.0.4 - sid: 40 - iso: 49.0001.0010.0100.1004.00 - - - name: sr-vmx5 - mgmt: 10.39.0.55 - rid: 192.168.0.5 - sid: 50 - iso: 49.0001.0010.0100.1005.00 - - - name: sr-vmx6 - mgmt: 10.39.0.56 - rid: 192.168.0.6 - sid: 60 - iso: 49.0001.0010.0100.1006.00 - - - name: sr-vmx7 - mgmt: 10.39.0.57 - rid: 192.168.0.7 - sid: 70 - iso: 49.0001.0010.0100.1007.00 - - - name: sr-vmx8 - mgmt: 10.39.0.58 - rid: 192.168.0.8 - sid: 80 - iso: 49.0001.0010.0100.1008.00 - - - name: sr-vmx9 - mgmt: 10.39.0.59 - rid: 192.168.0.9 - sid: 90 - iso: 49.0001.0010.0100.1009.00 - -lags: - - node: sr-vmx5 - intf: ae0 - ports: [ge-0/0/2, ge-0/0/3] - - node: sr-vmx7 - intf: ae0 - ports: [ge-0/0/2, ge-0/0/3] - - -links: - - {left: sr-vmx1, left_port: ge-0/0/0, left_ip: 10.0.0.0.0, - right: sr-vmx2, right_port: ge-0/0/0, right_ip: 10.0.0.0.1, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx1, left_port: ge-0/0/1, left_ip: 10.0.0.2, - right: sr-vmx4, right_port: ge-0/0/1, right_ip: 10.0.0.3, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx1, left_port: ge-0/0/2, left_ip: 10.0.0.22, - right: sr-vmx3, right_port: ge-0/0/2, right_ip: 10.0.0.23, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx2, left_port: ge-0/0/1, left_ip: 10.0.0.4, - right: sr-vmx5, right_port: ge-0/0/1, right_ip: 10.0.0.5, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx3, left_port: ge-0/0/4, left_ip: 10.0.0.24, - right: sr-vmx6, right_port: ge-0/0/4, right_ip: 10.0.0.25, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx4, left_port: ge-0/0/0, left_ip: 10.0.0.6, - right: sr-vmx5, right_port: ge-0/0/0, right_ip: 10.0.0.7, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx4, left_port: ge-0/0/2, left_ip: 10.0.0.8, - right: sr-vmx6, right_port: ge-0/0/2, right_ip: 10.0.0.9, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx4, left_port: ge-0/0/3, left_ip: 10.0.0.10, - right: sr-vmx6, right_port: ge-0/0/3, right_ip: 10.0.0.11, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx5, left_port: ae0, left_ip: 10.0.0.12, - right: sr-vmx7, right_port: ae0, right_ip: 10.0.0.13, - mask: 31, cost: 500, mpls: True, iso: True } - - - {left: sr-vmx6, left_port: ge-0/0/0, left_ip: 10.0.0.14, - right: sr-vmx7, right_port: ge-0/0/0, right_ip: 10.0.0.15, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx6, left_port: ge-0/0/1, left_ip: 10.0.0.16, - right: sr-vmx8, right_port: ge-0/0/1, right_ip: 10.0.0.17, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx7, left_port: ge-0/0/1, left_ip: 10.0.0.18, - right: sr-vmx9, right_port: ge-0/0/1, right_ip: 10.0.0.19, - mask: 31, cost: 1000, mpls: True, iso: True } - - - {left: sr-vmx8, left_port: ge-0/0/0, left_ip: 10.0.0.20, - right: sr-vmx9, right_port: ge-0/0/0, right_ip: 10.0.0.21, - mask: 31, cost: 1000, mpls: True, iso: True } - - -bgp: - rr: [192.168.0.4, 192.168.0.7] - clients: [192.168.0.1, 192.168.0.2, 192.168.0.8, 192.168.0.9] - af: - - inet - - inet-vpn - -#isis: -# network: p2p diff --git a/core_config/ansible-veos1-config.txt b/core_config/ansible-veos1-config.txt deleted file mode 100644 index 65474fb..0000000 --- a/core_config/ansible-veos1-config.txt +++ /dev/null @@ -1,91 +0,0 @@ -! -no schedule tech-support -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos1 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$QooVHYszFBY655A/$WnVBzmLe2LsWQ2kF01jtWff4L9xlxIfCpB0/rS7nWB70dFEoIbIYPRf1LHGg/jSGcR6VdecKvweJxry2vttCR1 -username salt privilege 15 role network-admin secret sha512 $6$gNfDGxuNqAufb7SS$XuBAZwDyHEX6Bt6zgDBA0zkJLhOm.5aJ8cwy2wd21DVr9yWr.gqwYBx7NUntbvSjTlKDQBg.XsMIIYRwqU10u1 -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet4 - no switchport - ip address 172.10.15.1/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet1 - no switchport - ip address 172.10.12.1/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet2 - no switchport - ip address 172.10.13.1/24 - isis enable sr_instance - isis network point-to-point -! -! -! -interface Loopback0 - ip address 10.39.8.41/32 - isis enable sr_instance - node-segment ipv4 index 10 -! -interface Management1 - ip address 10.39.0.41/22 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -ipv6 unicast-routing -! -! -mpls ip -! -mpls label range isis-sr 800000 4096 -! -router bgp 65000 - router-id 10.39.8.41 - ! - neighbor 10.39.8.42 remote-as 65000 - neighbor 10.39.8.42 update-source Management1 - ! - ! - neighbor 10.39.8.43 remote-as 65000 - neighbor 10.39.8.43 update-source Management1 - ! - ! - neighbor 10.39.8.44 remote-as 65000 - neighbor 10.39.8.44 update-source Management1 - ! - ! - ! -! -! -! -router isis sr_instance - net 49.0001.0010.0100.1001.00 - is-type level-2 - log-adjacency-changes - ! - address-family ipv4 unicast - ! - segment-routing mpls - router-id 10.39.8.41 - no shutdown - ! -! -management api http-commands - protocol http - no shutdown -! diff --git a/core_config/ansible-veos2-config.txt b/core_config/ansible-veos2-config.txt deleted file mode 100644 index 2514617..0000000 --- a/core_config/ansible-veos2-config.txt +++ /dev/null @@ -1,83 +0,0 @@ -! -no schedule tech-support -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos2 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$QooVHYszFBY655A/$WnVBzmLe2LsWQ2kF01jtWff4L9xlxIfCpB0/rS7nWB70dFEoIbIYPRf1LHGg/jSGcR6VdecKvweJxry2vttCR1 -username salt privilege 15 role network-admin secret sha512 $6$gNfDGxuNqAufb7SS$XuBAZwDyHEX6Bt6zgDBA0zkJLhOm.5aJ8cwy2wd21DVr9yWr.gqwYBx7NUntbvSjTlKDQBg.XsMIIYRwqU10u1 -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet3 - no switchport - ip address 172.10.24.2/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet4 - no switchport - ip address 172.10.25.2/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet1 - no switchport - ip address 172.10.12.2/24 - isis enable sr_instance - isis network point-to-point -! -! -! -interface Loopback0 - ip address 10.39.8.42/32 - isis enable sr_instance - node-segment ipv4 index 20 -! -interface Management1 - ip address 10.39.0.42/22 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -ipv6 unicast-routing -! -! -mpls ip -! -mpls label range isis-sr 800000 4096 -! -router bgp 65000 - router-id 10.39.8.42 - ! - neighbor 10.39.8.41 remote-as 65000 - neighbor 10.39.8.41 update-source Management1 - ! - ! - ! -! -! -! -router isis sr_instance - net 49.0001.0010.0100.1002.00 - is-type level-2 - log-adjacency-changes - ! - address-family ipv4 unicast - ! - segment-routing mpls - router-id 10.39.8.42 - no shutdown - ! -! -management api http-commands - protocol http - no shutdown -! diff --git a/core_config/ansible-veos3-config.txt b/core_config/ansible-veos3-config.txt deleted file mode 100644 index 53a4373..0000000 --- a/core_config/ansible-veos3-config.txt +++ /dev/null @@ -1,83 +0,0 @@ -! -no schedule tech-support -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos3 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$QooVHYszFBY655A/$WnVBzmLe2LsWQ2kF01jtWff4L9xlxIfCpB0/rS7nWB70dFEoIbIYPRf1LHGg/jSGcR6VdecKvweJxry2vttCR1 -username salt privilege 15 role network-admin secret sha512 $6$gNfDGxuNqAufb7SS$XuBAZwDyHEX6Bt6zgDBA0zkJLhOm.5aJ8cwy2wd21DVr9yWr.gqwYBx7NUntbvSjTlKDQBg.XsMIIYRwqU10u1 -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet3 - no switchport - ip address 172.10.34.3/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet4 - no switchport - ip address 172.10.36.3/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet1 - no switchport - ip address 172.10.13.3/24 - isis enable sr_instance - isis network point-to-point -! -! -! -interface Loopback0 - ip address 10.39.8.43/32 - isis enable sr_instance - node-segment ipv4 index 30 -! -interface Management1 - ip address 10.39.0.43/22 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -ipv6 unicast-routing -! -! -mpls ip -! -mpls label range isis-sr 800000 4096 -! -router bgp 65000 - router-id 10.39.8.43 - ! - neighbor 10.39.8.41 remote-as 65000 - neighbor 10.39.8.41 update-source Management1 - ! - ! - ! -! -! -! -router isis sr_instance - net 49.0001.0010.0100.1003.00 - is-type level-2 - log-adjacency-changes - ! - address-family ipv4 unicast - ! - segment-routing mpls - router-id 10.39.8.43 - no shutdown - ! -! -management api http-commands - protocol http - no shutdown -! diff --git a/core_config/ansible-veos4-config.txt b/core_config/ansible-veos4-config.txt deleted file mode 100644 index 41744a3..0000000 --- a/core_config/ansible-veos4-config.txt +++ /dev/null @@ -1,83 +0,0 @@ -! -no schedule tech-support -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos4 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$QooVHYszFBY655A/$WnVBzmLe2LsWQ2kF01jtWff4L9xlxIfCpB0/rS7nWB70dFEoIbIYPRf1LHGg/jSGcR6VdecKvweJxry2vttCR1 -username salt privilege 15 role network-admin secret sha512 $6$gNfDGxuNqAufb7SS$XuBAZwDyHEX6Bt6zgDBA0zkJLhOm.5aJ8cwy2wd21DVr9yWr.gqwYBx7NUntbvSjTlKDQBg.XsMIIYRwqU10u1 -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet3 - no switchport - ip address 172.10.34.4/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet4 - no switchport - ip address 172.10.46.4/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet2 - no switchport - ip address 172.10.24.4/24 - isis enable sr_instance - isis network point-to-point -! -! -! -interface Loopback0 - ip address 10.39.8.44/32 - isis enable sr_instance - node-segment ipv4 index 40 -! -interface Management1 - ip address 10.39.0.44/22 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -ipv6 unicast-routing -! -! -mpls ip -! -mpls label range isis-sr 800000 4096 -! -router bgp 65000 - router-id 10.39.8.44 - ! - neighbor 10.39.8.41 remote-as 65000 - neighbor 10.39.8.41 update-source Management1 - ! - ! - ! -! -! -! -router isis sr_instance - net 49.0001.0010.0100.1004.00 - is-type level-2 - log-adjacency-changes - ! - address-family ipv4 unicast - ! - segment-routing mpls - router-id 10.39.8.44 - no shutdown - ! -! -management api http-commands - protocol http - no shutdown -! diff --git a/core_config/ansible-veos5-config.txt b/core_config/ansible-veos5-config.txt deleted file mode 100644 index e78cf3a..0000000 --- a/core_config/ansible-veos5-config.txt +++ /dev/null @@ -1,89 +0,0 @@ -! -no schedule tech-support -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos5 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$QooVHYszFBY655A/$WnVBzmLe2LsWQ2kF01jtWff4L9xlxIfCpB0/rS7nWB70dFEoIbIYPRf1LHGg/jSGcR6VdecKvweJxry2vttCR1 -username salt privilege 15 role network-admin secret sha512 $6$gNfDGxuNqAufb7SS$XuBAZwDyHEX6Bt6zgDBA0zkJLhOm.5aJ8cwy2wd21DVr9yWr.gqwYBx7NUntbvSjTlKDQBg.XsMIIYRwqU10u1 -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet3 - no switchport - ip address 172.10.55.5/24 -! -! -interface Ethernet1 - no switchport - ip address 172.10.15.5/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet2 - no switchport - ip address 172.10.25.5/24 - isis enable sr_instance - isis network point-to-point -! -! -! -interface Loopback0 - ip address 10.39.8.55/32 - isis enable sr_instance - node-segment ipv4 index 50 -! -interface Management1 - ip address 10.39.0.55/22 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -ipv6 unicast-routing -! -! -mpls ip -! -mpls label range isis-sr 800000 4096 -! -router bgp 65000 - router-id 10.39.8.55 - ! - neighbor 10.39.8.41 remote-as 65000 - neighbor 10.39.8.41 update-source Management1 - ! - address-family ipv4 labeled-unicast - neighbor 10.39.8.41 activate - ! - neighbor 163.253.39.165 remote-as 65000 - neighbor 163.253.39.165 update-source Management1 - ! - address-family ipv4 labeled-unicast - neighbor 163.253.39.165 activate - ! - ! -! -! -! -router isis sr_instance - net 49.0001.0010.0100.1005.00 - is-type level-2 - log-adjacency-changes - ! - address-family ipv4 unicast - ! - segment-routing mpls - router-id 10.39.8.55 - no shutdown - ! -! -management api http-commands - protocol http - no shutdown -! diff --git a/core_config/ansible-veos55-config.txt b/core_config/ansible-veos55-config.txt deleted file mode 100644 index 24d84f4..0000000 --- a/core_config/ansible-veos55-config.txt +++ /dev/null @@ -1,54 +0,0 @@ -! -no schedule tech-support -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos55 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$QooVHYszFBY655A/$WnVBzmLe2LsWQ2kF01jtWff4L9xlxIfCpB0/rS7nWB70dFEoIbIYPRf1LHGg/jSGcR6VdecKvweJxry2vttCR1 -username salt privilege 15 role network-admin secret sha512 $6$gNfDGxuNqAufb7SS$XuBAZwDyHEX6Bt6zgDBA0zkJLhOm.5aJ8cwy2wd21DVr9yWr.gqwYBx7NUntbvSjTlKDQBg.XsMIIYRwqU10u1 -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet1 - no switchport - ip address 172.10.55.55/24 -! -! -! -interface Loopback0 - ip address 10.39.8.155/32 -! -interface Management1 - ip address 10.39.0.155/22 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -ipv6 unicast-routing -! -! -mpls ip -! -mpls label range isis-sr 800000 4096 -! -router bgp 65000 - router-id 10.39.8.155 - ! - neighbor 10.39.8.41 remote-as 65000 - neighbor 10.39.8.41 update-source Management1 - ! - ! - ! -! -! -! -! -management api http-commands - protocol http - no shutdown -! diff --git a/core_config/ansible-veos6-config.txt b/core_config/ansible-veos6-config.txt deleted file mode 100644 index c160405..0000000 --- a/core_config/ansible-veos6-config.txt +++ /dev/null @@ -1,89 +0,0 @@ -! -no schedule tech-support -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos6 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$QooVHYszFBY655A/$WnVBzmLe2LsWQ2kF01jtWff4L9xlxIfCpB0/rS7nWB70dFEoIbIYPRf1LHGg/jSGcR6VdecKvweJxry2vttCR1 -username salt privilege 15 role network-admin secret sha512 $6$gNfDGxuNqAufb7SS$XuBAZwDyHEX6Bt6zgDBA0zkJLhOm.5aJ8cwy2wd21DVr9yWr.gqwYBx7NUntbvSjTlKDQBg.XsMIIYRwqU10u1 -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet3 - no switchport - ip address 172.10.66.6/24 -! -! -interface Ethernet1 - no switchport - ip address 172.10.36.6/24 - isis enable sr_instance - isis network point-to-point -! -! -interface Ethernet2 - no switchport - ip address 172.10.46.6/24 - isis enable sr_instance - isis network point-to-point -! -! -! -interface Loopback0 - ip address 10.39.8.56/32 - isis enable sr_instance - node-segment ipv4 index 60 -! -interface Management1 - ip address 10.39.0.56/22 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -ipv6 unicast-routing -! -! -mpls ip -! -mpls label range isis-sr 800000 4096 -! -router bgp 65000 - router-id 10.39.8.56 - ! - neighbor 10.39.8.41 remote-as 65000 - neighbor 10.39.8.41 update-source Management1 - ! - address-family ipv4 labeled-unicast - neighbor 10.39.8.41 activate - ! - neighbor 163.253.39.165 remote-as 65000 - neighbor 163.253.39.165 update-source Management1 - ! - address-family ipv4 labeled-unicast - neighbor 163.253.39.165 activate - ! - ! -! -! -! -router isis sr_instance - net 49.0001.0010.0100.1006.00 - is-type level-2 - log-adjacency-changes - ! - address-family ipv4 unicast - ! - segment-routing mpls - router-id 10.39.8.56 - no shutdown - ! -! -management api http-commands - protocol http - no shutdown -! diff --git a/core_config/ansible-veos66-config.txt b/core_config/ansible-veos66-config.txt deleted file mode 100644 index 56a6a91..0000000 --- a/core_config/ansible-veos66-config.txt +++ /dev/null @@ -1,54 +0,0 @@ -! -no schedule tech-support -! -transceiver qsfp default-mode 4x10G -! -hostname ansible-veos66 -! -spanning-tree mode mstp -! -no aaa root -! -username admin privilege 15 role network-admin secret sha512 $6$QooVHYszFBY655A/$WnVBzmLe2LsWQ2kF01jtWff4L9xlxIfCpB0/rS7nWB70dFEoIbIYPRf1LHGg/jSGcR6VdecKvweJxry2vttCR1 -username salt privilege 15 role network-admin secret sha512 $6$gNfDGxuNqAufb7SS$XuBAZwDyHEX6Bt6zgDBA0zkJLhOm.5aJ8cwy2wd21DVr9yWr.gqwYBx7NUntbvSjTlKDQBg.XsMIIYRwqU10u1 -username salt sshkey ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt knewell@ubuntu -! -interface Ethernet1 - no switchport - ip address 172.10.66.66/24 -! -! -! -interface Loopback0 - ip address 10.39.8.156/32 -! -interface Management1 - ip address 10.39.0.156/22 -! -ip route 0.0.0.0/0 10.39.0.1 -! -ip routing -! -ipv6 unicast-routing -! -! -mpls ip -! -mpls label range isis-sr 800000 4096 -! -router bgp 65000 - router-id 10.39.8.156 - ! - neighbor 10.39.8.41 remote-as 65000 - neighbor 10.39.8.41 update-source Management1 - ! - ! - ! -! -! -! -! -management api http-commands - protocol http - no shutdown -! diff --git a/core_config/ansible-vmx1-config.txt b/core_config/ansible-vmx1-config.txt deleted file mode 100644 index 0613353..0000000 --- a/core_config/ansible-vmx1-config.txt +++ /dev/null @@ -1,167 +0,0 @@ - -version 17.3R3.9 -system { - host-name ansible-vmx1; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} - -interfaces { - ge-0/0/0 { - description "ansible-vmx2" - unit 0 { - family inet { - address 172.10.12.1/24 - } - family mpls; - family iso; - } - } - - ge-0/0/1 { - description "ansible-vmx3" - unit 0 { - family inet { - address 172.10.13.1/24 - } - family mpls; - family iso; - } - } - - ge-0/0/3 { - description "ansible-veos5" - unit 0 { - family inet { - address 172.10.15.1/24 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.57/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 10.39.8.41/32; - } - family iso { - address 49.0001.0010.0100.1001.00; - } - - } - } -} -routing-options { - router-id 10.39.8.41; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - local-address 10.39.8.41; - cluster 10.39.8.41; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 10.39.8.42; - neighbor 10.39.8.43; - neighbor 10.39.8.44; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 10; - } - } - level 1 disable; - interface ge-0/0/0.0 { - point-to-point; - } - interface ge-0/0/1.0 { - point-to-point; - } - interface ge-0/0/3.0 { - point-to-point; - } - interface lo0.0 { - passive; - } - } - ldp { - interface ge-0/0/0.0; - interface ge-0/0/1.0; - interface ge-0/0/3.0; - interface lo0.0; - } - rsvp { - interface ge-0/0/0.0; - interface ge-0/0/1.0; - interface ge-0/0/3.0; - } - mpls { - interface ge-0/0/0.0; - interface ge-0/0/1.0; - interface ge-0/0/3.0; - } - lldp { - interface ge-0/0/0; - interface ge-0/0/1; - interface ge-0/0/3; - } -} diff --git a/core_config/ansible-vmx2-config.txt b/core_config/ansible-vmx2-config.txt deleted file mode 100644 index a5a48de..0000000 --- a/core_config/ansible-vmx2-config.txt +++ /dev/null @@ -1,179 +0,0 @@ - -version 17.3R3.9 -system { - host-name ansible-vmx2; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} - -interfaces { - ge-0/0/0 { - description "ansible-vmx1" - unit 0 { - family inet { - address 172.10.12.2/24 - } - family mpls; - family iso; - } - } - - ge-0/0/2 { - description "ansible-vmx4" - unit 0 { - family inet { - address 172.10.24.2/24 - } - family mpls; - family iso; - } - } - - ge-0/0/3 { - description "ansible-veos5" - unit 0 { - family inet { - address 172.10.25.2/24 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.58/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 10.39.8.42/32; - } - family iso { - address 49.0001.0010.0100.1002.00; - } - - } - } -} -routing-options { - router-id 10.39.8.42; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 10.39.8.42; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 10.39.8.41; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 20; - } - } - level 1 disable; - interface ge-0/0/0.0 { - point-to-point; - } - interface ge-0/0/2.0 { - point-to-point; - } - interface ge-0/0/3.0 { - point-to-point; - } - interface lo0.0 { - passive; - } - } - ldp { - interface ge-0/0/0.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - interface lo0.0; - } - rsvp { - interface ge-0/0/0.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - } - mpls { - interface ge-0/0/0.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - } - lldp { - interface ge-0/0/0; - interface ge-0/0/2; - interface ge-0/0/3; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/core_config/ansible-vmx3-config.txt b/core_config/ansible-vmx3-config.txt deleted file mode 100644 index bffc810..0000000 --- a/core_config/ansible-vmx3-config.txt +++ /dev/null @@ -1,179 +0,0 @@ - -version 17.3R3.9 -system { - host-name ansible-vmx3; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} - -interfaces { - ge-0/0/0 { - description "ansible-vmx1" - unit 0 { - family inet { - address 172.10.13.3/24 - } - family mpls; - family iso; - } - } - - ge-0/0/2 { - description "ansible-vmx4" - unit 0 { - family inet { - address 172.10.34.3/24 - } - family mpls; - family iso; - } - } - - ge-0/0/3 { - description "ansible-veos6" - unit 0 { - family inet { - address 172.10.36.3/24 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.59/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 10.39.8.43/32; - } - family iso { - address 49.0001.0010.0100.1003.00; - } - - } - } -} -routing-options { - router-id 10.39.8.43; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 10.39.8.43; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 10.39.8.41; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 30; - } - } - level 1 disable; - interface ge-0/0/0.0 { - point-to-point; - } - interface ge-0/0/2.0 { - point-to-point; - } - interface ge-0/0/3.0 { - point-to-point; - } - interface lo0.0 { - passive; - } - } - ldp { - interface ge-0/0/0.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - interface lo0.0; - } - rsvp { - interface ge-0/0/0.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - } - mpls { - interface ge-0/0/0.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - } - lldp { - interface ge-0/0/0; - interface ge-0/0/2; - interface ge-0/0/3; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/core_config/ansible-vmx4-config.txt b/core_config/ansible-vmx4-config.txt deleted file mode 100644 index 7bada14..0000000 --- a/core_config/ansible-vmx4-config.txt +++ /dev/null @@ -1,179 +0,0 @@ - -version 17.3R3.9 -system { - host-name ansible-vmx4; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} - -interfaces { - ge-0/0/1 { - description "ansible-vmx2" - unit 0 { - family inet { - address 172.10.24.4/24 - } - family mpls; - family iso; - } - } - - ge-0/0/2 { - description "ansible-vmx3" - unit 0 { - family inet { - address 172.10.34.4/24 - } - family mpls; - family iso; - } - } - - ge-0/0/3 { - description "ansible-veos6" - unit 0 { - family inet { - address 172.10.46.4/24 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.60/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 10.39.8.44/32; - } - family iso { - address 49.0001.0010.0100.1004.00; - } - - } - } -} -routing-options { - router-id 10.39.8.44; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 10.39.8.44; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 10.39.8.41; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 40; - } - } - level 1 disable; - interface ge-0/0/1.0 { - point-to-point; - } - interface ge-0/0/2.0 { - point-to-point; - } - interface ge-0/0/3.0 { - point-to-point; - } - interface lo0.0 { - passive; - } - } - ldp { - interface ge-0/0/1.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - interface lo0.0; - } - rsvp { - interface ge-0/0/1.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - } - mpls { - interface ge-0/0/1.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - } - lldp { - interface ge-0/0/1; - interface ge-0/0/2; - interface ge-0/0/3; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/core_config/sr-vmx1-config.txt b/core_config/sr-vmx1-config.txt deleted file mode 100644 index fa8cdca..0000000 --- a/core_config/sr-vmx1-config.txt +++ /dev/null @@ -1,171 +0,0 @@ - -version VERSION -system { - host-name sr-vmx1; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} -interfaces { - ge-0/0/0 { - description "sr-vmx2" - unit 0 { - family inet { - address 10.0.0.0.0/31 - } - family mpls; - family iso; - } - } - - ge-0/0/1 { - description "sr-vmx4" - unit 0 { - family inet { - address 10.0.0.2/31 - } - family mpls; - family iso; - } - } - - ge-0/0/2 { - description "sr-vmx3" - unit 0 { - family inet { - address 10.0.0.22/31 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.57/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 192.168.0.1/32; - } - family iso { - address 49.0001.0010.0100.1001.00; - } - - } - } -} -routing-options { - router-id 192.168.0.1; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 192.168.0.1; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 192.168.0.4; - neighbor 192.168.0.7; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 10; - } - } - level 1 disable; - interface ge-0/0/0.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/1.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/2.0 { - point-to-point; - metric 1000; - } - interface lo0.0 { - passive; - } - } - mpls { - interface ge-0/0/0.0; - interface ge-0/0/1.0; - interface ge-0/0/2.0; - } - lldp { - interface ge-0/0/0; - interface ge-0/0/1; - interface ge-0/0/2; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/core_config/sr-vmx2-config.txt b/core_config/sr-vmx2-config.txt deleted file mode 100644 index c607cf2..0000000 --- a/core_config/sr-vmx2-config.txt +++ /dev/null @@ -1,154 +0,0 @@ - -version VERSION -system { - host-name sr-vmx2; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} -interfaces { - ge-0/0/0 { - description "sr-vmx1" - unit 0 { - family inet { - address 10.0.0.0.1/31 - } - family mpls; - family iso; - } - } - - ge-0/0/1 { - description "sr-vmx5" - unit 0 { - family inet { - address 10.0.0.4/31 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.58/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 192.168.0.2/32; - } - family iso { - address 49.0001.0010.0100.1002.00; - } - - } - } -} -routing-options { - router-id 192.168.0.2; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 192.168.0.2; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 192.168.0.4; - neighbor 192.168.0.7; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 20; - } - } - level 1 disable; - interface ge-0/0/0.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/1.0 { - point-to-point; - metric 1000; - } - interface lo0.0 { - passive; - } - } - mpls { - interface ge-0/0/0.0; - interface ge-0/0/1.0; - } - lldp { - interface ge-0/0/0; - interface ge-0/0/1; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/core_config/sr-vmx3-config.txt b/core_config/sr-vmx3-config.txt deleted file mode 100644 index bda6420..0000000 --- a/core_config/sr-vmx3-config.txt +++ /dev/null @@ -1,154 +0,0 @@ - -version VERSION -system { - host-name sr-vmx3; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} -interfaces { - ge-0/0/2 { - description "sr-vmx1" - unit 0 { - family inet { - address 10.0.0.23/31 - } - family mpls; - family iso; - } - } - - ge-0/0/4 { - description "sr-vmx6" - unit 0 { - family inet { - address 10.0.0.24/31 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.59/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 192.168.0.3/32; - } - family iso { - address 49.0001.0010.0100.1003.00; - } - - } - } -} -routing-options { - router-id 192.168.0.3; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 192.168.0.3; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 192.168.0.4; - neighbor 192.168.0.7; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 30; - } - } - level 1 disable; - interface ge-0/0/2.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/4.0 { - point-to-point; - metric 1000; - } - interface lo0.0 { - passive; - } - } - mpls { - interface ge-0/0/2.0; - interface ge-0/0/4.0; - } - lldp { - interface ge-0/0/2; - interface ge-0/0/4; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/core_config/sr-vmx4-config.txt b/core_config/sr-vmx4-config.txt deleted file mode 100644 index d80830a..0000000 --- a/core_config/sr-vmx4-config.txt +++ /dev/null @@ -1,176 +0,0 @@ - -version VERSION -system { - host-name sr-vmx4; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} -interfaces { - ge-0/0/0 { - description "sr-vmx5" - unit 0 { - family inet { - address 10.0.0.6/31 - } - family mpls; - family iso; - } - } - - ge-0/0/1 { - description "sr-vmx1" - unit 0 { - family inet { - address 10.0.0.3/31 - } - family mpls; - family iso; - } - } - - ge-0/0/2 { - description "sr-vmx6" - unit 0 { - family inet { - address 10.0.0.8/31 - } - family mpls; - family iso; - } - } - - ge-0/0/3 { - description "sr-vmx6" - unit 0 { - family inet { - address 10.0.0.10/31 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.60/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 192.168.0.4/32; - } - family iso { - address 49.0001.0010.0100.1004.00; - } - - } - } -} -routing-options { - router-id 192.168.0.4; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - local-address 192.168.0.4; - cluster 192.168.0.4; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 192.168.0.1; - neighbor 192.168.0.2; - neighbor 192.168.0.8; - neighbor 192.168.0.9; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 40; - } - } - level 1 disable; - interface ge-0/0/0.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/1.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/2.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/3.0 { - point-to-point; - metric 1000; - } - interface lo0.0 { - passive; - } - } - mpls { - interface ge-0/0/0.0; - interface ge-0/0/1.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - } - lldp { - interface ge-0/0/0; - interface ge-0/0/1; - interface ge-0/0/2; - interface ge-0/0/3; - } -} diff --git a/core_config/sr-vmx5-config.txt b/core_config/sr-vmx5-config.txt deleted file mode 100644 index 9d78974..0000000 --- a/core_config/sr-vmx5-config.txt +++ /dev/null @@ -1,190 +0,0 @@ - -version VERSION -system { - host-name sr-vmx5; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} -chassis { - aggregated-devices { - ethernet { - device-count 10; - } - } -} -interfaces { - ae0 { - description "sr-vmx7" - unit 0 { - family inet { - address 10.0.0.12/31 - } - family mpls; - family iso; - } - } - - ge-0/0/0 { - description "sr-vmx4" - unit 0 { - family inet { - address 10.0.0.7/31 - } - family mpls; - family iso; - } - } - - ge-0/0/1 { - description "sr-vmx2" - unit 0 { - family inet { - address 10.0.0.5/31 - } - family mpls; - family iso; - } - } - - ge-0/0/2 { - description "[ae0]" - gigether-options { - 802.3.ad ae0 - } - } - ge-0/0/3 { - description "[ae0]" - gigether-options { - 802.3.ad ae0 - } - } - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.55/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 192.168.0.5/32; - } - family iso { - address 49.0001.0010.0100.1005.00; - } - - } - } -} -routing-options { - router-id 192.168.0.5; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 192.168.0.5; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 192.168.0.4; - neighbor 192.168.0.7; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 50; - } - } - level 1 disable; - interface ae0.0 { - point-to-point; - metric 500; - } - interface ge-0/0/0.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/1.0 { - point-to-point; - metric 1000; - } - interface lo0.0 { - passive; - } - } - mpls { - interface ae0.0; - interface ge-0/0/0.0; - interface ge-0/0/1.0; - } - lldp { - interface ae0; - interface ge-0/0/0; - interface ge-0/0/1; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/core_config/sr-vmx6-config.txt b/core_config/sr-vmx6-config.txt deleted file mode 100644 index c58db44..0000000 --- a/core_config/sr-vmx6-config.txt +++ /dev/null @@ -1,205 +0,0 @@ - -version VERSION -system { - host-name sr-vmx6; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} -interfaces { - ge-0/0/0 { - description "sr-vmx7" - unit 0 { - family inet { - address 10.0.0.14/31 - } - family mpls; - family iso; - } - } - - ge-0/0/1 { - description "sr-vmx8" - unit 0 { - family inet { - address 10.0.0.16/31 - } - family mpls; - family iso; - } - } - - ge-0/0/2 { - description "sr-vmx4" - unit 0 { - family inet { - address 10.0.0.9/31 - } - family mpls; - family iso; - } - } - - ge-0/0/3 { - description "sr-vmx4" - unit 0 { - family inet { - address 10.0.0.11/31 - } - family mpls; - family iso; - } - } - - ge-0/0/4 { - description "sr-vmx3" - unit 0 { - family inet { - address 10.0.0.25/31 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.56/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 192.168.0.6/32; - } - family iso { - address 49.0001.0010.0100.1006.00; - } - - } - } -} -routing-options { - router-id 192.168.0.6; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 192.168.0.6; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 192.168.0.4; - neighbor 192.168.0.7; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 60; - } - } - level 1 disable; - interface ge-0/0/0.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/1.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/2.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/3.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/4.0 { - point-to-point; - metric 1000; - } - interface lo0.0 { - passive; - } - } - mpls { - interface ge-0/0/0.0; - interface ge-0/0/1.0; - interface ge-0/0/2.0; - interface ge-0/0/3.0; - interface ge-0/0/4.0; - } - lldp { - interface ge-0/0/0; - interface ge-0/0/1; - interface ge-0/0/2; - interface ge-0/0/3; - interface ge-0/0/4; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/core_config/sr-vmx7-config.txt b/core_config/sr-vmx7-config.txt deleted file mode 100644 index 52506c9..0000000 --- a/core_config/sr-vmx7-config.txt +++ /dev/null @@ -1,178 +0,0 @@ - -version VERSION -system { - host-name sr-vmx7; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} -chassis { - aggregated-devices { - ethernet { - device-count 10; - } - } -} -interfaces { - ae0 { - description "sr-vmx5" - unit 0 { - family inet { - address 10.0.0.13/31 - } - family mpls; - family iso; - } - } - - ge-0/0/0 { - description "sr-vmx6" - unit 0 { - family inet { - address 10.0.0.15/31 - } - family mpls; - family iso; - } - } - - ge-0/0/1 { - description "sr-vmx9" - unit 0 { - family inet { - address 10.0.0.18/31 - } - family mpls; - family iso; - } - } - - ge-0/0/2 { - description "[ae0]" - gigether-options { - 802.3.ad ae0 - } - } - ge-0/0/3 { - description "[ae0]" - gigether-options { - 802.3.ad ae0 - } - } - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.57/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 192.168.0.7/32; - } - family iso { - address 49.0001.0010.0100.1007.00; - } - - } - } -} -routing-options { - router-id 192.168.0.7; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - local-address 192.168.0.7; - cluster 192.168.0.7; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 192.168.0.1; - neighbor 192.168.0.2; - neighbor 192.168.0.8; - neighbor 192.168.0.9; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 70; - } - } - level 1 disable; - interface ae0.0 { - point-to-point; - metric 500; - } - interface ge-0/0/0.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/1.0 { - point-to-point; - metric 1000; - } - interface lo0.0 { - passive; - } - } - mpls { - interface ae0.0; - interface ge-0/0/0.0; - interface ge-0/0/1.0; - } - lldp { - interface ae0; - interface ge-0/0/0; - interface ge-0/0/1; - } -} diff --git a/core_config/sr-vmx8-config.txt b/core_config/sr-vmx8-config.txt deleted file mode 100644 index f95cc77..0000000 --- a/core_config/sr-vmx8-config.txt +++ /dev/null @@ -1,154 +0,0 @@ - -version VERSION -system { - host-name sr-vmx8; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} -interfaces { - ge-0/0/0 { - description "sr-vmx9" - unit 0 { - family inet { - address 10.0.0.20/31 - } - family mpls; - family iso; - } - } - - ge-0/0/1 { - description "sr-vmx6" - unit 0 { - family inet { - address 10.0.0.17/31 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.58/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 192.168.0.8/32; - } - family iso { - address 49.0001.0010.0100.1008.00; - } - - } - } -} -routing-options { - router-id 192.168.0.8; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 192.168.0.8; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 192.168.0.4; - neighbor 192.168.0.7; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 80; - } - } - level 1 disable; - interface ge-0/0/0.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/1.0 { - point-to-point; - metric 1000; - } - interface lo0.0 { - passive; - } - } - mpls { - interface ge-0/0/0.0; - interface ge-0/0/1.0; - } - lldp { - interface ge-0/0/0; - interface ge-0/0/1; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/core_config/sr-vmx9-config.txt b/core_config/sr-vmx9-config.txt deleted file mode 100644 index 18b8ffe..0000000 --- a/core_config/sr-vmx9-config.txt +++ /dev/null @@ -1,154 +0,0 @@ - -version VERSION -system { - host-name sr-vmx9; - no-redirects; - root-authentication { - encrypted-password "$5$mcE0Hfiq$JfBeC3QSAvnd1tjqlOhlYXDgVrwvd6S4G3oVj5wiMO7"; ## SECRET-DATA - } - login { - user salt { - uid 2001; - class super-user; - authentication { - encrypted-password "$5$yp7ziGTI$F5F.6AUlR8hDK2JIsw5WRrTLex/yTCWH3iSR1Auk293"; ## SECRET-DATA - ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjxY2hLZ+ju5wdK4GYNhKGgnS8EWLBoEVpo+xQkhDzkTiBx3HGAnmARcVV0B9MqrHZl1omdnirJeygWzVbVY4yPUqGgEcUsTTq9fvK4AjTwtaoB5txAosaOnZq0zewmuZ6EMi6E3RND6A3FGXkf1Il2jg3I8k/dGqdyFI80B7sWy90fk+EqsGMPxVc+l5vAtY2jm84ellxxzBsulxfCSKPH86hZ1GqZ8A1ZBWITu15NjQw0aGssSYGMMTa1T8eFyY4hHWqqdwgOlODg9mZwwP1JdJH79SRoTOjqGGixuAFDGAgH3fNX6u8wTmYya/z7WXH6B2XwiiaZYdcyEbMLPZt"; ## SECRET-DATA - } - } - } - services { - ssh; - netconf { - ssh; - traceoptions { - file nc.txt size 1m world-readable; - flag all; - } - } - } - syslog { - user * { - any emergency; - } - file messages { - any any; - authorization info; - } - file interactive-commands { - interactive-commands any; - } - } -} -interfaces { - ge-0/0/0 { - description "sr-vmx8" - unit 0 { - family inet { - address 10.0.0.21/31 - } - family mpls; - family iso; - } - } - - ge-0/0/1 { - description "sr-vmx7" - unit 0 { - family inet { - address 10.0.0.19/31 - } - family mpls; - family iso; - } - } - - fxp0 { - description "OOB to MGMT Network"; - unit 0 { - family inet { - address 10.39.0.59/20; - } - } - } - lo0 { - unit 0 { - family inet { - address 192.168.0.9/32; - } - family iso { - address 49.0001.0010.0100.1009.00; - } - - } - } -} -routing-options { - router-id 192.168.0.9; - autonomous-system 65000; - static { - route 0.0.0.0/0 { - next-hop 10.39.0.1; - no-readvertise; - preference 255; - } - } -} -protocols { - bgp { - group Core { - type internal; - export __Ansible_Core_export; - local-address 192.168.0.9; - family inet { - unicast; - } - family inet-vpn { - unicast; - } - neighbor 192.168.0.4; - neighbor 192.168.0.7; - } - } - isis { - no-ipv6-routing; - source-packet-routing { - node-segment { - ipv4-index 90; - } - } - level 1 disable; - interface ge-0/0/0.0 { - point-to-point; - metric 1000; - } - interface ge-0/0/1.0 { - point-to-point; - metric 1000; - } - interface lo0.0 { - passive; - } - } - mpls { - interface ge-0/0/0.0; - interface ge-0/0/1.0; - } - lldp { - interface ge-0/0/0; - interface ge-0/0/1; - } -} -policy-options { - policy-statement __Ansible_Core_export { - term ebgp { - from { - protocol bgp; - external; - } - then { - next-hop self; - accept; - } - } - } -} diff --git a/eos.yml b/eos.yml deleted file mode 100644 index b9687d4..0000000 --- a/eos.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- hosts: veos - - tasks: - - name: Backup current switch config (eos) - eos_config: - backup: yes - register: backup_eos_location - when: ansible_network_os == 'eos' - - name: Debug - debug: - msg: "{{backup_eos_location}}" diff --git a/facts.yml b/facts.yml deleted file mode 100644 index 51559b5..0000000 --- a/facts.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- - -- name: Network Getting Started First Playbook - hosts: all - gather_facts: false - tasks: - - name: Gather facts (eos) - eos_facts: - when: ansible_network_os == 'eos' - register: results - - - name: Display facts - debug: var=results - - - name: Gather facts (junos) - junos_facts: - when: ansible_network_os == 'junos' - register: results - - - name: Display facts - debug: var=results diff --git a/facts_napalm.yml b/facts_napalm.yml deleted file mode 100644 index 0411634..0000000 --- a/facts_napalm.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- - -- name: Get NAPALM Facts - hosts: vmx - gather_facts: false - tasks: - - - name: Get facts - napalm_get_facts: - hostname: "{{ ansible_host }}" - username: "{{ ansible_user }}" - dev_os: "{{ ansible_network_os }}" - optional_args: - key_file: "{{ ansible_ssh_private_key_file }}" - register: results - - - name: Display facts - debug: - var: "napalm_os_version" diff --git a/group_vars/all b/group_vars/all new file mode 100644 index 0000000..ab10388 --- /dev/null +++ b/group_vars/all @@ -0,0 +1,3 @@ +--- +ansible_user: salt +ansible_ssh_private_key_file: /srv/salt/ssh/id_rsa diff --git a/group_vars/dhcpd b/group_vars/dhcpd new file mode 100644 index 0000000..3d3ddea --- /dev/null +++ b/group_vars/dhcpd @@ -0,0 +1 @@ +ansible_user: knewell diff --git a/group_vars/eos b/group_vars/eos index 879feb4..be3988b 100644 --- a/group_vars/eos +++ b/group_vars/eos @@ -2,7 +2,6 @@ ansible_connection: network_cli #ansible_connection: netconf ansible_network_os: eos -ansible_user: salt -ansible_ssh_private_key_file: /srv/salt/ssh/id_rsa ansible_become: yes ansible_become_method: enable +model: core-model-veos.yml diff --git a/group_vars/junos b/group_vars/junos index ba7367d..0f27cee 100644 --- a/group_vars/junos +++ b/group_vars/junos @@ -1,8 +1,6 @@ --- #ansible_connection: network_cli -#ansible_connection: netconf -ansible_connection: local +ansible_connection: netconf +#ansible_connection: local ansible_network_os: junos -ansible_user: salt -ansible_ssh_private_key_file: /srv/salt/ssh/id_rsa ansible_net_version: VERSION diff --git a/group_vars/srlab b/group_vars/srlab new file mode 100644 index 0000000..0c2100c --- /dev/null +++ b/group_vars/srlab @@ -0,0 +1,4 @@ +--- +ansible_connection: local +model: core-model-sr.yml +dryrun: True diff --git a/hosts b/hosts deleted file mode 100644 index c0f451a..0000000 --- a/hosts +++ /dev/null @@ -1,27 +0,0 @@ ---- -all: - children: - junos: - children: - vmx: - hosts: - ansible-vmx1: - ansible_host: 10.39.0.57 - ansible-vmx2: - ansible_host: 10.39.0.58 - ansible-vmx3: - ansible_host: 10.39.0.59 - ansible-vmx4: - ansible_host: 10.39.0.60 - eos: - children: - veos: - hosts: - ansible-veos5: - ansible_host: 10.39.0.55 - ansible-veos6: - ansible_host: 10.39.0.56 - ansible-veos55: - ansible_host: 10.39.0.155 - ansible-veos66: - ansible_host: 10.39.0.156 diff --git a/hosts.ini b/hosts.ini index b4cd2a4..ff1c5ca 100644 --- a/hosts.ini +++ b/hosts.ini @@ -1,11 +1,56 @@ -[vmx] +[srlab] +srlab-vmx1 ansible_host=10.0.0.1 +srlab-vmx2 ansible_host=10.0.0.2 +srlab-vmx3 ansible_host=10.0.0.3 +srlab-vmx4 ansible_host=10.0.0.4 +srlab-vmx5 ansible_host=10.0.0.5 +srlab-vmx6 ansible_host=10.0.0.6 +srlab-vmx7 ansible_host=10.0.0.7 +srlab-vmx8 ansible_host=10.0.0.8 +srlab-vmx9 ansible_host=10.0.0.9 + +[vmx:children] +srlab vmx1 ansible_host=10.39.8.10 vmx2 ansible_host=10.39.8.11 -vmx3 ansible_host=10.39.8.12 +vmx3 ansible_host=10.39.8.12 vmx4 ansible_host=10.39.8.13 -vmx5 ansible_host=10.39.8.14 -vmx6 ansible_host=10.39.8.15 +vmx5 ansible_host=10.39.8.14 +vmx6 ansible_host=10.39.8.15 + +[mx5] +mx5-1 ansible_host=10.39.8.1 +mx5-2 ansible_host=10.39.8.2 +mx5-3 ansible_host=10.39.8.3 +mx5-4 ansible_host=10.39.8.4 +mx5-5 ansible_host=10.39.8.5 +mx5-6 ansible_host=10.39.8.6 + +[mx240] +mx240-1 ansible_host=10.39.8.7 +mx240-2 ansible_host=10.39.8.8 +mx240-3 ansible_host=10.39.8.9 + +[mx:children] +mx5 +mx240 [junos:children] vmx +mx + +[veos] +ansible-veos1 ansible_host=10.39.0.41 +ansible-veos2 ansible_host=10.39.0.42 +ansible-veos3 ansible_host=10.39.0.43 +ansible-veos4 ansible_host=10.39.0.44 +ansible-veos5 ansible_host=10.39.0.55 +ansible-veos6 ansible_host=10.39.0.56 +ansible-veos55 ansible_host=10.39.0.155 +ansible-veos66 ansible_host=10.39.0.156 + +[eos:children] +veos +[dhcp] +dhcpd ansible_host=10.39.0.2 diff --git a/hosts_lab b/hosts_lab deleted file mode 100644 index eba9a4a..0000000 --- a/hosts_lab +++ /dev/null @@ -1,41 +0,0 @@ ---- -all: - children: - junos: - children: - vmx: - hosts: - vmx1: - ansible_host: 10.39.8.10 - vmx2: - ansible_host: 10.39.8.11 - vmx3: - ansible_host: 10.39.8.12 - vmx4: - ansible_host: 10.39.8.13 - vmx5: - ansible_host: 10.39.8.14 - vmx6: - ansible_host: 10.39.8.15 - mx5: - hosts: - mx5-1: - ansible_host: 10.39.8.1 - mx5-2: - ansible_host: 10.39.8.2 - mx5-3: - ansible_host: 10.39.8.3 - mx5-4: - ansible_host: 10.39.8.4 - mx5-5: - ansible_host: 10.39.8.5 - mx5-6: - ansible_host: 10.39.8.6 - mx240: - hosts: - mx240-1: - ansible_host: 10.39.8.7 - mx240-2: - ansible_host: 10.39.8.8 - mx240-3: - ansible_host: 10.39.8.9 diff --git a/hosts_sr b/hosts_sr deleted file mode 100644 index f237fb4..0000000 --- a/hosts_sr +++ /dev/null @@ -1,28 +0,0 @@ ---- -all: - children: - junos: - children: - vmx: - hosts: - sr-vmx1: -# ansible_host: 10.0.0.1 - sr-vmx2: -# ansible_host: 10.0.0.2 - sr-vmx3: -# ansible_host: 10.0.0.3 - sr-vmx4: -# ansible_host: 10.0.0.4 - sr-vmx5: -# ansible_host: 10.0.0.5 - sr-vmx6: -# ansible_host: 10.0.0.6 - sr-vmx7: -# ansible_host: 10.0.0.7 - sr-vmx8: -# ansible_host: 10.0.0.8 - sr-vmx9: -# ansible_host: 10.0.0.9 - vars: - model: core-model-sr.yml - dryrun: True diff --git a/hosts_sr.orig b/hosts_sr.orig deleted file mode 100644 index 19a2bc7..0000000 --- a/hosts_sr.orig +++ /dev/null @@ -1,28 +0,0 @@ ---- -all: - children: - junos: - children: - vmx: - hosts: - sr-vmx1: - ansible_host: 10.0.0.1 - sr-vmx2: - ansible_host: 10.0.0.2 - sr-vmx3: - ansible_host: 10.0.0.3 - sr-vmx4: - ansible_host: 10.0.0.4 - sr-vmx5: - ansible_host: 10.0.0.5 - sr-vmx6: - ansible_host: 10.0.0.6 - sr-vmx7: - ansible_host: 10.0.0.7 - sr-vmx8: - ansible_host: 10.0.0.8 - sr-vmx9: - ansible_host: 10.0.0.9 - vars: - model: core-model-sr.yml - dryrun: True diff --git a/hosts_veos b/hosts_veos deleted file mode 100644 index 94faa61..0000000 --- a/hosts_veos +++ /dev/null @@ -1,25 +0,0 @@ ---- -all: - children: - eos: - children: - veos: - hosts: - ansible-veos1: - ansible_host: 10.39.0.41 - ansible-veos2: - ansible_host: 10.39.0.42 - ansible-veos3: - ansible_host: 10.39.0.43 - ansible-veos4: - ansible_host: 10.39.0.44 - ansible-veos5: - ansible_host: 10.39.0.55 - ansible-veos6: - ansible_host: 10.39.0.56 - ansible-veos55: - ansible_host: 10.39.0.155 - ansible-veos66: - ansible_host: 10.39.0.156 - vars: - model: core-model-veos.yml diff --git a/hosts_vmware b/hosts_vmware deleted file mode 100644 index ad7eb34..0000000 --- a/hosts_vmware +++ /dev/null @@ -1,12 +0,0 @@ -[switches] -test-vmx1-br-int -test-vmx2-br-int -test-vmx1-vmx2 - -[vmx] -test-vmx1 -test-vmx2 - -[vmware:children] -switches -vmx diff --git a/junos.yml b/junos.yml deleted file mode 100644 index a2a67a5..0000000 --- a/junos.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -- name: Config junos - gather_facts: no - hosts: vmx - tasks: - - name: load config - junos_config: - src: core_config/{{inventory_hostname}}-config.txt - update: replace - comment: Ansible config update diff --git a/nodes.yml b/nodes.yml deleted file mode 100644 index ed3706a..0000000 --- a/nodes.yml +++ /dev/null @@ -1,190 +0,0 @@ -# -# Nodes in the network -# - ---- - -common: - bgp_asn: 65000 - -nodes: - - sr-vmx1: - mgmt: 10.39.0.57 - rid: 192.168.0.1 - sid: 10 - iso: 49.0001.0010.0100.1001.00 - lags: - links: - ge-0/0/0.0: { ip: 10.0.0.0.0, remote: sr-vmx2, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/1.0: { ip: 10.0.0.2, remote: sr-vmx4, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/2.0: { ip: 10.0.0.22, remote: sr-vmx3, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - bgp: - ibgp: - peers: - - 192.168.0.4 - - 192.168.0.7 - af: - - inet - - inet-vpn - - sr-vmx2: - mgmt: 10.39.0.58 - rid: 192.168.0.2 - sid: 20 - iso: 49.0001.0010.0100.1002.00 - lags: - links: - ge-0/0/0.0: { ip: 10.0.0.0.1, remote: sr-vmx1, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/1.0: { ip: 10.0.0.4, remote: sr-vmx5, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - bgp: - ibgp: - peers: - - 192.168.0.4 - - 192.168.0.7 - af: - - inet - - inet-vpn - - sr-vmx3: - mgmt: 10.39.0.59 - rid: 192.168.0.3 - sid: 30 - iso: 49.0001.0010.0100.1003.00 - lags: - links: - ge-0/0/2.0: { ip: 10.0.0.23, remote: sr-vmx1, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/4.0: { ip: 10.0.0.24, remote: sr-vmx6, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - bgp: - ibgp: - peers: - - 192.168.0.4 - - 192.168.0.7 - af: - - inet - - inet-vpn - - sr-vmx4: - mgmt: 10.39.0.60 - rid: 192.168.0.4 - sid: 40 - iso: 49.0001.0010.0100.1004.00 - lags: - links: - ge-0/0/1.0: { ip: 10.0.0.3, remote: sr-vmx1, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/0.0: { ip: 10.0.0.6, remote: sr-vmx5, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/2.0: { ip: 10.0.0.8, remote: sr-vmx6, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/3.0: { ip: 10.0.0.10, remote: sr-vmx6, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - bgp: - ibgp: - rr: true - peers: - - 192.168.0.1 - - 192.168.0.2 - - 192.168.0.8 - - 192.168.0.9 - af: - - inet - - inet-vpn - - sr-vmx5: - mgmt: 10.39.0.55 - rid: 192.168.0.5 - sid: 50 - iso: 49.0001.0010.0100.1005.00 - lags: - ge-0/0/2: ae0 - ge-0/0/3: ae0 - links: - ge-0/0/1.0: { ip: 10.0.0.5, remote: sr-vmx2, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/0.0: { ip: 10.0.0.7, remote: sr-vmx4, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ae0.0: { ip: 10.0.0.12, remote: sr-vmx7, mask: 31, cost: 500, vlan: 0, mpls: True, iso: True} - bgp: - ibgp: - peers: - - 192.168.0.4 - - 192.168.0.7 - af: - - inet - - inet-vpn - - sr-vmx6: - mgmt: 10.39.0.56 - rid: 192.168.0.6 - sid: 60 - iso: 49.0001.0010.0100.1006.00 - lags: - links: - ge-0/0/4.0: { ip: 10.0.0.25, remote: sr-vmx3, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/2.0: { ip: 10.0.0.9, remote: sr-vmx4, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/3.0: { ip: 10.0.0.11, remote: sr-vmx4, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/0.0: { ip: 10.0.0.14, remote: sr-vmx7, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/1.0: { ip: 10.0.0.16, remote: sr-vmx8, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - bgp: - ibgp: - peers: - - 192.168.0.4 - - 192.168.0.7 - af: - - inet - - inet-vpn - - sr-vmx7: - mgmt: 10.39.0.57 - rid: 192.168.0.7 - sid: 70 - iso: 49.0001.0010.0100.1007.00 - lags: - ge-0/0/2: ae0 - ge-0/0/3: ae0 - links: - ae0.0: { ip: 10.0.0.13, remote: sr-vmx5, mask: 31, cost: 500, vlan: 0, mpls: True, iso: True} - ge-0/0/0.0: { ip: 10.0.0.15, remote: sr-vmx6, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/1.0: { ip: 10.0.0.18, remote: sr-vmx9, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - bgp: - ibgp: - rr: true - peers: - - 192.168.0.1 - - 192.168.0.2 - - 192.168.0.8 - - 192.168.0.9 - af: - - inet - - inet-vpn - - sr-vmx8: - mgmt: 10.39.0.58 - rid: 192.168.0.8 - sid: 80 - iso: 49.0001.0010.0100.1008.00 - lags: - links: - ge-0/0/1.0: { ip: 10.0.0.17, remote: sr-vmx6, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/0.0: { ip: 10.0.0.20, remote: sr-vmx9, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - bgp: - ibgp: - peers: - - 192.168.0.4 - - 192.168.0.7 - af: - - inet - - inet-vpn - - sr-vmx9: - mgmt: 10.39.0.59 - rid: 192.168.0.9 - sid: 90 - iso: 49.0001.0010.0100.1009.00 - lags: - links: - ge-0/0/1.0: { ip: 10.0.0.19, remote: sr-vmx7, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - ge-0/0/0.0: { ip: 10.0.0.21, remote: sr-vmx8, mask: 31, cost: 1000, vlan: 0, mpls: True, iso: True} - bgp: - ibgp: - peers: - - 192.168.0.4 - - 192.168.0.7 - af: - - inet - - inet-vpn diff --git a/ova_deploy.yml b/ova_deploy.yml deleted file mode 100644 index d3ebdc4..0000000 --- a/ova_deploy.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -- name: Deploy an ova - hosts: vmware - gather_facts: no - tasks: - - name: Deploy the vcp ova - vmware_deploy_ovf: - hostname: "{{ vcenter_hostname }}" - username: "{{ vcenter_username }}" - password: "{{ vcenter_password }}" - validate_certs: False - name: testvmx2_vcp - datastore: datastore2 - ova: ova/vcp_17.3R3.10.ova - disk_provisioning: thin - power_on: no - networks: - br-ext: NS-DEV-NAT - br-int: testvmx2-br-int - delegate_to: localhost - - name: Deploy the vfpc ova - vmware_deploy_ovf: - hostname: "{{ vcenter_hostname }}" - username: "{{ vcenter_username }}" - password: "{{ vcenter_password }}" - validate_certs: False - name: testvmx2_vfpc - datastore: datastore2 - ova: ova/vfpc_17.3R3.10.ova - disk_provisioning: thin - power_on: no - networks: - br-ext: NS-DEV-NAT - br-int: testvmx2-br-int - delegate_to: localhost diff --git a/requirements.txt b/requirements.txt index 7003f0f..fc23366 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,5 @@ ansible junos-eznc junos-netconify napalm-ansible +PyVmomi +jinja2-cli diff --git a/diff/ansible-vmx1-diff.txt b/roles/common/defaults/main.yml similarity index 100% rename from diff/ansible-vmx1-diff.txt rename to roles/common/defaults/main.yml diff --git a/diff/ansible-vmx2-diff.txt b/roles/common/files/main.yml similarity index 100% rename from diff/ansible-vmx2-diff.txt rename to roles/common/files/main.yml diff --git a/diff/ansible-vmx3-diff.txt b/roles/common/handlers/main.yml similarity index 100% rename from diff/ansible-vmx3-diff.txt rename to roles/common/handlers/main.yml diff --git a/diff/ansible-vmx4-diff.txt b/roles/common/meta/main.yml similarity index 100% rename from diff/ansible-vmx4-diff.txt rename to roles/common/meta/main.yml diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/common/templates/main.yml b/roles/common/templates/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/common/vars/main.yml b/roles/common/vars/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-dhcpd/defaults/main.yml b/roles/deploy-dhcpd/defaults/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-dhcpd/defaults/vars-dhcpd.yml b/roles/deploy-dhcpd/defaults/vars-dhcpd.yml new file mode 100644 index 0000000..ad4a060 --- /dev/null +++ b/roles/deploy-dhcpd/defaults/vars-dhcpd.yml @@ -0,0 +1,23 @@ +--- + +dhcpd_mode: server +dhcpd_authoritative: True +dhcpd_interfaces: [ ens192 ] +ansible_domain: internet2.edu + +# where to ask for DNS Server / dhcpd_dns_servers +#ansible_default_ipv4.address: 10.39.0.2 + +dhcpd_subnets: [ '{{ dhcpd_subnet_local }}' ] + +dhcpd_subnets_local: +- subnet: '10.39.0.0' + netmask: '255.255.248.0' + routers: [ '10.39.0.1' ] + options: | + default-lease-time 300; + max-lease-time 7200; + +# External file with list of hosts +dhcpd_hosts: '/etc/dhcp/dhcp-hosts.conf' + diff --git a/roles/deploy-dhcpd/files/main.yml b/roles/deploy-dhcpd/files/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-dhcpd/handlers/main.yml b/roles/deploy-dhcpd/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-dhcpd/meta/main.yml b/roles/deploy-dhcpd/meta/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-dhcpd/tasks/dhcpd_deploy_iso.yml b/roles/deploy-dhcpd/tasks/dhcpd_deploy_iso.yml new file mode 100644 index 0000000..ee392fa --- /dev/null +++ b/roles/deploy-dhcpd/tasks/dhcpd_deploy_iso.yml @@ -0,0 +1,32 @@ +--- +- name: Deploy an iso + hosts: localhost + tags: deploy_iso + gather_facts: no + vars_files: group_vars/vmware + tasks: + - name: Deploy the ubuntu iso + vmware_guest: + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" + esxi_hostname: "{{ esxi_hostname }}" + validate_certs: False + name: "dhcpd" + datastore: datastore2 + folder: / + state: present + guest_id: ubuntu64Guest + cdrom: + type: iso + iso_path: "[datastore2] ISOs/ubuntu-18.04.1-live-server-amd64.iso" + disk: + - size_gb: 40 + type: thin + hardware: + memory_mb: 1024 + num_cpus: 2 + scsi: paravirtual + networks: + - name: NS-DEV-NAT + device_type: vmxnet3 diff --git a/roles/deploy-dhcpd/tasks/dhcpd_server.yml b/roles/deploy-dhcpd/tasks/dhcpd_server.yml new file mode 100644 index 0000000..0cad6c0 --- /dev/null +++ b/roles/deploy-dhcpd/tasks/dhcpd_server.yml @@ -0,0 +1,12 @@ +--- +# This playbook just apply debops.dhcpd Role to a target node. +- name: Infrastructure Services [DHCP server] + hosts: dhcpd + become: True + + vars_files: + - vars-dhcpd.yml + + roles: + - role: debops.dhcpd + tags: dhcpd diff --git a/roles/deploy-dhcpd/tasks/main.yml b/roles/deploy-dhcpd/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-dhcpd/templates/main.yml b/roles/deploy-dhcpd/templates/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-dhcpd/vars/main.yml b/roles/deploy-dhcpd/vars/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-topo/defaults/core-model-sr.yml b/roles/deploy-topo/defaults/core-model-sr.yml new file mode 100644 index 0000000..b56d885 --- /dev/null +++ b/roles/deploy-topo/defaults/core-model-sr.yml @@ -0,0 +1,139 @@ +--- + +common: + bgp_asn: 65000 + +nodes: + - name: srlab-vmx1 + mgmt: 10.39.0.57 + rid: 192.168.0.1 + sid: 10 + iso: 49.0001.0010.0100.1001.00 + + - name: srlab-vmx2 + mgmt: 10.39.0.58 + rid: 192.168.0.2 + sid: 20 + iso: 49.0001.0010.0100.1002.00 + + - name: srlab-vmx3 + mgmt: 10.39.0.59 + rid: 192.168.0.3 + sid: 30 + iso: 49.0001.0010.0100.1003.00 + + - name: srlab-vmx4 + mgmt: 10.39.0.60 + rid: 192.168.0.4 + sid: 40 + iso: 49.0001.0010.0100.1004.00 + + - name: srlab-vmx5 + mgmt: 10.39.0.55 + rid: 192.168.0.5 + sid: 50 + iso: 49.0001.0010.0100.1005.00 + + - name: srlab-vmx6 + mgmt: 10.39.0.56 + rid: 192.168.0.6 + sid: 60 + iso: 49.0001.0010.0100.1006.00 + + - name: srlab-vmx7 + mgmt: 10.39.0.57 + rid: 192.168.0.7 + sid: 70 + iso: 49.0001.0010.0100.1007.00 + + - name: srlab-vmx8 + mgmt: 10.39.0.58 + rid: 192.168.0.8 + sid: 80 + iso: 49.0001.0010.0100.1008.00 + + - name: srlab-vmx9 + mgmt: 10.39.0.59 + rid: 192.168.0.9 + sid: 90 + iso: 49.0001.0010.0100.1009.00 + +lags: + - node: srlab-vmx5 + intf: ae0 + ports: [ge-0/0/2, ge-0/0/3] + - node: srlab-vmx7 + intf: ae0 + ports: [ge-0/0/2, ge-0/0/3] + +# using the following for the lag ports. can't extract correct information +# from the links ae interfaces for lags +switches: + - {left: srlab-vmx5, left_port: ge-0/0/2, + right: srlab-vmx7, right_port: ge-0/0/2 } + - {left: srlab-vmx5, left_port: ge-0/0/3, + right: srlab-vmx7, right_port: ge-0/0/3 } + +links: + - {left: srlab-vmx1, left_port: ge-0/0/0, left_ip: 10.0.0.0.0, + right: srlab-vmx2, right_port: ge-0/0/0, right_ip: 10.0.0.0.1, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx1, left_port: ge-0/0/1, left_ip: 10.0.0.2, + right: srlab-vmx4, right_port: ge-0/0/1, right_ip: 10.0.0.3, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx1, left_port: ge-0/0/2, left_ip: 10.0.0.22, + right: srlab-vmx3, right_port: ge-0/0/2, right_ip: 10.0.0.23, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx2, left_port: ge-0/0/1, left_ip: 10.0.0.4, + right: srlab-vmx5, right_port: ge-0/0/1, right_ip: 10.0.0.5, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx3, left_port: ge-0/0/4, left_ip: 10.0.0.24, + right: srlab-vmx6, right_port: ge-0/0/4, right_ip: 10.0.0.25, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx4, left_port: ge-0/0/0, left_ip: 10.0.0.6, + right: srlab-vmx5, right_port: ge-0/0/0, right_ip: 10.0.0.7, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx4, left_port: ge-0/0/2, left_ip: 10.0.0.8, + right: srlab-vmx6, right_port: ge-0/0/2, right_ip: 10.0.0.9, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx4, left_port: ge-0/0/3, left_ip: 10.0.0.10, + right: srlab-vmx6, right_port: ge-0/0/3, right_ip: 10.0.0.11, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx5, left_port: ae0, left_ip: 10.0.0.12, + right: srlab-vmx7, right_port: ae0, right_ip: 10.0.0.13, + mask: 31, cost: 500, mpls: True, iso: True } + + - {left: srlab-vmx6, left_port: ge-0/0/0, left_ip: 10.0.0.14, + right: srlab-vmx7, right_port: ge-0/0/0, right_ip: 10.0.0.15, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx6, left_port: ge-0/0/1, left_ip: 10.0.0.16, + right: srlab-vmx8, right_port: ge-0/0/1, right_ip: 10.0.0.17, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx7, left_port: ge-0/0/1, left_ip: 10.0.0.18, + right: srlab-vmx9, right_port: ge-0/0/1, right_ip: 10.0.0.19, + mask: 31, cost: 1000, mpls: True, iso: True } + + - {left: srlab-vmx8, left_port: ge-0/0/0, left_ip: 10.0.0.20, + right: srlab-vmx9, right_port: ge-0/0/0, right_ip: 10.0.0.21, + mask: 31, cost: 1000, mpls: True, iso: True } + + +bgp: + rr: [192.168.0.4, 192.168.0.7] + clients: [192.168.0.1, 192.168.0.2, 192.168.0.8, 192.168.0.9] + af: + - inet + - inet-vpn + +#isis: +# network: p2p diff --git a/core/core-model-veos.yml b/roles/deploy-topo/defaults/core-model-veos.yml similarity index 100% rename from core/core-model-veos.yml rename to roles/deploy-topo/defaults/core-model-veos.yml diff --git a/core/core-model.yml b/roles/deploy-topo/defaults/core-model.yml similarity index 100% rename from core/core-model.yml rename to roles/deploy-topo/defaults/core-model.yml diff --git a/roles/deploy-topo/defaults/main.yml b/roles/deploy-topo/defaults/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-topo/defaults/nodes.yml b/roles/deploy-topo/defaults/nodes.yml new file mode 100644 index 0000000..3f6d2ef --- /dev/null +++ b/roles/deploy-topo/defaults/nodes.yml @@ -0,0 +1,168 @@ +common: {bgp_asn: 65000} +nodes: + srlab-vmx1: + bgp: + ibgp: + af: [inet, inet-vpn] + peers: [192.168.0.4, 192.168.0.7] + iso: 49.0001.0010.0100.1001.00 + lags: null + links: + ge-0/0/0.0: {cost: 1000, ip: 10.0.0.0.0, iso: true, mask: 31, mpls: true, remote: srlab-vmx2, + vlan: 0} + ge-0/0/1.0: {cost: 1000, ip: 10.0.0.2, iso: true, mask: 31, mpls: true, remote: srlab-vmx4, + vlan: 0} + ge-0/0/2.0: {cost: 1000, ip: 10.0.0.22, iso: true, mask: 31, mpls: true, remote: srlab-vmx3, + vlan: 0} + mgmt: 10.39.0.57 + rid: 192.168.0.1 + sid: 10 + switches: [srlab-vmx1-0--srlab-vmx2-0, srlab-vmx1-1--srlab-vmx4-1, srlab-vmx1-2--srlab-vmx3-2] + srlab-vmx2: + bgp: + ibgp: + af: [inet, inet-vpn] + peers: [192.168.0.4, 192.168.0.7] + iso: 49.0001.0010.0100.1002.00 + lags: null + links: + ge-0/0/0.0: {cost: 1000, ip: 10.0.0.0.1, iso: true, mask: 31, mpls: true, remote: srlab-vmx1, + vlan: 0} + ge-0/0/1.0: {cost: 1000, ip: 10.0.0.4, iso: true, mask: 31, mpls: true, remote: srlab-vmx5, + vlan: 0} + mgmt: 10.39.0.58 + rid: 192.168.0.2 + sid: 20 + switches: [srlab-vmx1-0--srlab-vmx2-0, srlab-vmx2-1--srlab-vmx5-1] + srlab-vmx3: + bgp: + ibgp: + af: [inet, inet-vpn] + peers: [192.168.0.4, 192.168.0.7] + iso: 49.0001.0010.0100.1003.00 + lags: null + links: + ge-0/0/2.0: {cost: 1000, ip: 10.0.0.23, iso: true, mask: 31, mpls: true, remote: srlab-vmx1, + vlan: 0} + ge-0/0/4.0: {cost: 1000, ip: 10.0.0.24, iso: true, mask: 31, mpls: true, remote: srlab-vmx6, + vlan: 0} + mgmt: 10.39.0.59 + rid: 192.168.0.3 + sid: 30 + switches: [srlab-vmx1-2--srlab-vmx3-2, srlab-vmx3-4--srlab-vmx6-4] + srlab-vmx4: + bgp: + ibgp: + af: [inet, inet-vpn] + peers: [192.168.0.1, 192.168.0.2, 192.168.0.8, 192.168.0.9] + rr: true + iso: 49.0001.0010.0100.1004.00 + lags: null + links: + ge-0/0/0.0: {cost: 1000, ip: 10.0.0.6, iso: true, mask: 31, mpls: true, remote: srlab-vmx5, + vlan: 0} + ge-0/0/1.0: {cost: 1000, ip: 10.0.0.3, iso: true, mask: 31, mpls: true, remote: srlab-vmx1, + vlan: 0} + ge-0/0/2.0: {cost: 1000, ip: 10.0.0.8, iso: true, mask: 31, mpls: true, remote: srlab-vmx6, + vlan: 0} + ge-0/0/3.0: {cost: 1000, ip: 10.0.0.10, iso: true, mask: 31, mpls: true, remote: srlab-vmx6, + vlan: 0} + mgmt: 10.39.0.60 + rid: 192.168.0.4 + sid: 40 + switches: [srlab-vmx4-0--srlab-vmx5-0, srlab-vmx1-1--srlab-vmx4-1, srlab-vmx4-2--srlab-vmx6-2, + srlab-vmx4-3--srlab-vmx6-3] + srlab-vmx5: + bgp: + ibgp: + af: [inet, inet-vpn] + peers: [192.168.0.4, 192.168.0.7] + iso: 49.0001.0010.0100.1005.00 + lags: {ge-0/0/2: ae0, ge-0/0/3: ae0} + links: + ae0.0: {cost: 500, ip: 10.0.0.12, iso: true, mask: 31, mpls: true, remote: srlab-vmx7, + vlan: 0} + ge-0/0/0.0: {cost: 1000, ip: 10.0.0.7, iso: true, mask: 31, mpls: true, remote: srlab-vmx4, + vlan: 0} + ge-0/0/1.0: {cost: 1000, ip: 10.0.0.5, iso: true, mask: 31, mpls: true, remote: srlab-vmx2, + vlan: 0} + mgmt: 10.39.0.55 + rid: 192.168.0.5 + sid: 50 + switches: [srlab-vmx4-0--srlab-vmx5-0, srlab-vmx2-1--srlab-vmx5-1, srlab-vmx5-2--srlab-vmx7-2, + srlab-vmx5-3--srlab-vmx7-3] + srlab-vmx6: + bgp: + ibgp: + af: [inet, inet-vpn] + peers: [192.168.0.4, 192.168.0.7] + iso: 49.0001.0010.0100.1006.00 + lags: null + links: + ge-0/0/0.0: {cost: 1000, ip: 10.0.0.14, iso: true, mask: 31, mpls: true, remote: srlab-vmx7, + vlan: 0} + ge-0/0/1.0: {cost: 1000, ip: 10.0.0.16, iso: true, mask: 31, mpls: true, remote: srlab-vmx8, + vlan: 0} + ge-0/0/2.0: {cost: 1000, ip: 10.0.0.9, iso: true, mask: 31, mpls: true, remote: srlab-vmx4, + vlan: 0} + ge-0/0/3.0: {cost: 1000, ip: 10.0.0.11, iso: true, mask: 31, mpls: true, remote: srlab-vmx4, + vlan: 0} + ge-0/0/4.0: {cost: 1000, ip: 10.0.0.25, iso: true, mask: 31, mpls: true, remote: srlab-vmx3, + vlan: 0} + mgmt: 10.39.0.56 + rid: 192.168.0.6 + sid: 60 + switches: [srlab-vmx6-0--srlab-vmx7-0, srlab-vmx6-1--srlab-vmx8-1, srlab-vmx4-2--srlab-vmx6-2, + srlab-vmx4-3--srlab-vmx6-3, srlab-vmx3-4--srlab-vmx6-4] + srlab-vmx7: + bgp: + ibgp: + af: [inet, inet-vpn] + peers: [192.168.0.1, 192.168.0.2, 192.168.0.8, 192.168.0.9] + rr: true + iso: 49.0001.0010.0100.1007.00 + lags: {ge-0/0/2: ae0, ge-0/0/3: ae0} + links: + ae0.0: {cost: 500, ip: 10.0.0.13, iso: true, mask: 31, mpls: true, remote: srlab-vmx5, + vlan: 0} + ge-0/0/0.0: {cost: 1000, ip: 10.0.0.15, iso: true, mask: 31, mpls: true, remote: srlab-vmx6, + vlan: 0} + ge-0/0/1.0: {cost: 1000, ip: 10.0.0.18, iso: true, mask: 31, mpls: true, remote: srlab-vmx9, + vlan: 0} + mgmt: 10.39.0.57 + rid: 192.168.0.7 + sid: 70 + switches: [srlab-vmx6-0--srlab-vmx7-0, srlab-vmx7-1--srlab-vmx9-1, srlab-vmx5-2--srlab-vmx7-2, + srlab-vmx5-3--srlab-vmx7-3] + srlab-vmx8: + bgp: + ibgp: + af: [inet, inet-vpn] + peers: [192.168.0.4, 192.168.0.7] + iso: 49.0001.0010.0100.1008.00 + lags: null + links: + ge-0/0/0.0: {cost: 1000, ip: 10.0.0.20, iso: true, mask: 31, mpls: true, remote: srlab-vmx9, + vlan: 0} + ge-0/0/1.0: {cost: 1000, ip: 10.0.0.17, iso: true, mask: 31, mpls: true, remote: srlab-vmx6, + vlan: 0} + mgmt: 10.39.0.58 + rid: 192.168.0.8 + sid: 80 + switches: [srlab-vmx8-0--srlab-vmx9-0, srlab-vmx6-1--srlab-vmx8-1] + srlab-vmx9: + bgp: + ibgp: + af: [inet, inet-vpn] + peers: [192.168.0.4, 192.168.0.7] + iso: 49.0001.0010.0100.1009.00 + lags: null + links: + ge-0/0/0.0: {cost: 1000, ip: 10.0.0.21, iso: true, mask: 31, mpls: true, remote: srlab-vmx8, + vlan: 0} + ge-0/0/1.0: {cost: 1000, ip: 10.0.0.19, iso: true, mask: 31, mpls: true, remote: srlab-vmx7, + vlan: 0} + mgmt: 10.39.0.59 + rid: 192.168.0.9 + sid: 90 + switches: [srlab-vmx8-0--srlab-vmx9-0, srlab-vmx7-1--srlab-vmx9-1] diff --git a/roles/deploy-topo/files/main.yml b/roles/deploy-topo/files/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-topo/files/ova/ubuntu-bionic-18.04-cloudimg.mf b/roles/deploy-topo/files/ova/ubuntu-bionic-18.04-cloudimg.mf new file mode 100644 index 0000000..b28618a --- /dev/null +++ b/roles/deploy-topo/files/ova/ubuntu-bionic-18.04-cloudimg.mf @@ -0,0 +1,2 @@ +SHA256(ubuntu-bionic-18.04-cloudimg.vmdk)= bdcbc8c4f5cc5f0c755efed0d4ef6363679ff6b4b39a09d117592c064d129ea2 +SHA256(ubuntu-bionic-18.04-cloudimg.ovf)= 737409b7cab56f892a2c7dbee4da57285637ea3cb6d7ec3a5ff569e53df6ebfa diff --git a/roles/deploy-topo/files/ova/ubuntu-bionic-18.04-cloudimg.ovf b/roles/deploy-topo/files/ova/ubuntu-bionic-18.04-cloudimg.ovf new file mode 100644 index 0000000..0762415 --- /dev/null +++ b/roles/deploy-topo/files/ova/ubuntu-bionic-18.04-cloudimg.ovf @@ -0,0 +1,178 @@ + + + + + + + Virtual disk information + + + + The list of logical networks + + The VM Network network + + + + A virtual machine + ubuntu-bionic-18.04-cloudimg-20190122 + + The kind of installed guest operating system + Ubuntu Linux (64-bit) + + + + Cloud-Init customization + Ubuntu 18.04 Server (20190122) + + + Specifies the instance id. This is required and used to determine if the machine should take "first boot" actions + + + Specifies the hostname for the appliance + + + + This field is optional, but indicates that the instance should 'seed' user-data and meta-data from the given url. If set to 'http://tinyurl.com/sm-' is given, meta-data will be pulled from http://tinyurl.com/sm-meta-data and user-data from http://tinyurl.com/sm-user-data. Leave this empty if you do not want to seed from a url. + + + + This field is optional, but indicates that the instance should populate the default user's 'authorized_keys' with this value + + + + In order to fit into a xml attribute, this value is base64 encoded . It will be decoded, and then processed normally as user-data. + + + + + If set, the default user's password will be set to this value to allow password based login. The password will be good for only a single login. If set to the string 'RANDOM' then a random password will be generated, and written to the console. + + + + + Virtual hardware requirements + + Virtual Hardware Family + 0 + ubuntu-bionic-18.04-cloudimg-20190122 + vmx-10 + + + hertz * 10^6 + Number of Virtual CPUs + 2 virtual CPU(s) + 1 + 3 + 2 + + + byte * 2^20 + Memory Size + 1024MB of memory + 2 + 4 + 1024 + + + 0 + SCSI Controller + SCSI Controller 0 + 3 + VirtualSCSI + 6 + + + 1 + IDE Controller + VirtualIDEController 1 + 4 + 5 + + + 0 + IDE Controller + VirtualIDEController 0 + 5 + 5 + + + false + VirtualVideoCard + 6 + 24 + + + + + + + + false + VirtualVMCIDevice + 7 + vmware.vmci + 1 + + + + 0 + false + CD-ROM 1 + 8 + 4 + vmware.cdrom.remotepassthrough + 15 + + + + 0 + Hard Disk 1 + ovf:/disk/vmdisk1 + 9 + 3 + 17 + + + + 0 + false + Floppy Drive + Floppy 1 + 10 + vmware.floppy.remotedevice + 14 + + + 7 + true + VM Network + VmxNet3 ethernet adapter on "VM Network" + Ethernet 1 + 11 + VmxNet3 + 10 + + + + + + + + + + + + + + + + + + + + + + diff --git a/roles/deploy-topo/files/switch_sort.py b/roles/deploy-topo/files/switch_sort.py new file mode 100755 index 0000000..876d31e --- /dev/null +++ b/roles/deploy-topo/files/switch_sort.py @@ -0,0 +1,11 @@ +#!/usb/bin/env python +import sys +import yaml + +with open(sys.argv[1], 'r+') as f: + data = yaml.load(f) + for key in data['nodes']: + data['nodes'][key]['switches'].sort(key=lambda x: x[-1]) + f.seek(0) + f.truncate() + yaml.dump(data, f) diff --git a/roles/deploy-topo/handlers/main.yml b/roles/deploy-topo/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-topo/meta/main.yml b/roles/deploy-topo/meta/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/lab_deploy.yml b/roles/deploy-topo/tasks/lab_deploy.yml similarity index 52% rename from lab_deploy.yml rename to roles/deploy-topo/tasks/lab_deploy.yml index 5089adf..bfd8da8 100644 --- a/lab_deploy.yml +++ b/roles/deploy-topo/tasks/lab_deploy.yml @@ -1,8 +1,9 @@ --- -- name: Create a vswitch - hosts: switches - tags: switch +- name: Create node bridge vswitches + hosts: srlab + tags: bridge_switches gather_facts: no + vars_files: group_vars/vmware tasks: - name: Create the vswitch vmware_vswitch: @@ -11,7 +12,7 @@ password: "{{ vcenter_password }}" esxi_hostname: "{{ esxi_hostname }}" validate_certs: False - switch_name: "{{ inventory_hostname }}" + switch_name: "{{ inventory_hostname }}-br-int" mtu: 9000 delegate_to: localhost - name: Create the portgroup @@ -21,8 +22,8 @@ password: "{{ vcenter_password }}" esxi_hostname: "{{ esxi_hostname }}" validate_certs: False - switch_name: "{{ inventory_hostname }}" - portgroup_name: "{{ inventory_hostname }}" + switch_name: "{{ inventory_hostname }}-br-int" + portgroup_name: "{{ inventory_hostname }}-br-int" network_policy: promiscuous_mode: true forged_transmits: true @@ -30,10 +31,46 @@ vlan_id: 0 delegate_to: localhost +- name: Create internode vswitches + hosts: srlab + tags: node_switches + gather_facts: no + vars_files: group_vars/vmware + tasks: + - include_vars: "./nodes.yml" + - name: Create the vswitch + vmware_vswitch: + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" + esxi_hostname: "{{ esxi_hostname }}" + validate_certs: False + switch_name: "{{ item }}" + mtu: 9000 + loop: "{{ nodes[inventory_hostname]['switches'] }}" + delegate_to: localhost + - name: Create the portgroup + vmware_portgroup: + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" + esxi_hostname: "{{ esxi_hostname }}" + validate_certs: False + switch_name: "{{ item }}" + portgroup_name: "{{ item }}" + network_policy: + promiscuous_mode: true + forged_transmits: true + mac_changes: true + vlan_id: 0 + loop: "{{ nodes[inventory_hostname]['switches'] }}" + delegate_to: localhost + - name: Deploy an ova - hosts: vmx - tags: ova + hosts: srlab + tags: deploy_ova gather_facts: no + vars_files: group_vars/vmware tasks: - name: Deploy the vcp ova vmware_deploy_ovf: @@ -68,28 +105,33 @@ br-int: "{{ inventory_hostname }}-br-int" delegate_to: localhost +- name: Sort node switches + hosts: localhost + tags: sort_switches + gather_facts: no + tasks: + - name: Sort node switches + command: "{{ ansible_python_interpreter }} {{ playbook_dir }}/switch_sort.py {{ playbook_dir }}/nodes.yml" + args: + chdir: "{{ playbook_dir }}" + +- name: Generate update network task + hosts: srlab + tags: generate_tasks + gather_facts: no + tasks: + - include_vars: "./nodes.yml" + - name: Generate update network task + template: + src: "./task_update_network.j2" + dest: "./tasks/{{ inventory_hostname }}_task.yml" + delegate_to: localhost + - name: Update vmx networking - hosts: vmx + hosts: srlab tags: update_network gather_facts: no + vars_files: group_vars/vmware tasks: - - name: Update vmx networking - vmware_guest: - hostname: "{{ vcenter_hostname }}" - username: "{{ vcenter_username }}" - password: "{{ vcenter_password }}" - esxi_hostname: "{{ esxi_hostname }}" - validate_certs: False - name: "{{ inventory_hostname }}-vfpc" - folder: / - datastore: datastore2 - networks: - - name: NS-DEV-NAT - - name: "{{ inventory_hostname }}-br-int" - - name: "test-vmx1-vmx2" - device_type: vmxnet3 - hardware: - num_cpus: 3 - memory_mb: 8192 - state: present - delegate_to: localhost + - name: Include task + include_tasks: "./tasks/{{ inventory_hostname }}_task.yml" diff --git a/roles/deploy-topo/tasks/main.yml b/roles/deploy-topo/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/validate.yml b/roles/deploy-topo/tasks/validate.yml similarity index 100% rename from validate.yml rename to roles/deploy-topo/tasks/validate.yml diff --git a/core/core-to-nodes.j2 b/roles/deploy-topo/templates/core-to-nodes.j2 similarity index 71% rename from core/core-to-nodes.j2 rename to roles/deploy-topo/templates/core-to-nodes.j2 index 3e003bb..52ba18f 100644 --- a/core/core-to-nodes.j2 +++ b/roles/deploy-topo/templates/core-to-nodes.j2 @@ -4,6 +4,9 @@ {% macro core_link(name,ip,mask,cost,vlan,remote,mpls,iso) %} {{name}}.{{vlan}}: { ip: {{ip}}, remote: {{remote}}{% if mask %}, mask: {{mask}}{% endif %}{% if cost %}, cost: {{cost}}{% endif %}{% if vlan %}, vlan: {{vlan}}{% endif %}{% if mpls %}, mpls: {{mpls}}{% endif %}{% if iso %}, iso: {{iso}}{% endif %}}{% endmacro %} +{% macro switch_dict(left_link, left_port, right_link, right_port) %} +- {{ left_link }}-{{ left_port|last }}--{{ right_link }}-{{ right_port|last }}{% endmacro %} + --- common: @@ -29,6 +32,25 @@ nodes: {% endfor %} {% endif %} {% endfor %} + switches: +{% for link in links %} +{% if "ae" not in link.left_port %} +{% if link.right == node.name %} + {{ switch_dict(link.left, link.left_port, link.right, link.right_port) }} +{% endif %} +{% if link.left == node.name %} + {{ switch_dict(link.left, link.left_port, link.right, link.right_port) }} +{% endif %} +{% endif %} +{% endfor %} +{% for link in switches %} +{% if link.right == node.name %} + {{ switch_dict(link.left, link.left_port, link.right, link.right_port) }} +{% endif %} +{% if link.left == node.name %} + {{ switch_dict(link.left, link.left_port, link.right, link.right_port) }} +{% endif %} +{% endfor %} links: {% for link in links %} {% if link.left == node.name %} diff --git a/eos/core.j2 b/roles/deploy-topo/templates/eos.j2 similarity index 100% rename from eos/core.j2 rename to roles/deploy-topo/templates/eos.j2 diff --git a/iosxr/core.j2 b/roles/deploy-topo/templates/iosxr.j2 similarity index 100% rename from iosxr/core.j2 rename to roles/deploy-topo/templates/iosxr.j2 diff --git a/junos/core.j2 b/roles/deploy-topo/templates/junos.j2 similarity index 100% rename from junos/core.j2 rename to roles/deploy-topo/templates/junos.j2 diff --git a/roles/deploy-topo/templates/main.yml b/roles/deploy-topo/templates/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/deploy-topo/templates/task_update_network.j2 b/roles/deploy-topo/templates/task_update_network.j2 new file mode 100644 index 0000000..45d99c6 --- /dev/null +++ b/roles/deploy-topo/templates/task_update_network.j2 @@ -0,0 +1,33 @@ + - name: Update vmx networking + vmware_guest: +{%- raw %} + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" + esxi_hostname: "{{ esxi_hostname }}" +{% endraw %} + validate_certs: False + name: "{{ inventory_hostname }}-vfpc" + folder: / + datastore: datastore2 + networks: + - name: NS-DEV-NAT + - name: "{{ inventory_hostname }}-br-int" +{% for i in range(1,8) %} +{% set dummy = [true] %} +{% for switch in nodes[inventory_hostname]['switches'] %} +{% if inventory_hostname|string + '-' + i|string in switch %} +{% set _ = dummy.append(not dummy.pop()) %} + - name: "{{ switch }}" + device_type: vmxnet3 +{% endif %} +{% endfor %} +{% if dummy[0] %} + - name: "DUMMY" +{% endif %} +{% endfor %} + hardware: + num_cpus: 3 + memory_mb: 8192 + state: present + delegate_to: localhost diff --git a/roles/deploy-topo/vars/main.yml b/roles/deploy-topo/vars/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/show.yml b/show.yml deleted file mode 100644 index 821a6a3..0000000 --- a/show.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- - -- name: Network Getting Started First Playbook - hosts: vmx - gather_facts: false - tasks: - - - name: show bgp summary - junos_command: - commands: show bgp summary - display: xml - when: ansible_network_os == 'junos' - register: _ - - - debug: msg="{{ _ }}" diff --git a/site.yml b/site.yml new file mode 100644 index 0000000..e69de29 diff --git a/switch_deploy.yml b/switch_deploy.yml deleted file mode 100644 index 5004d5a..0000000 --- a/switch_deploy.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -- name: Create a vswitch - hosts: vmware - gather_facts: no - tasks: - - name: Create the vswitch - vmware_vswitch: - hostname: "{{ vcenter_hostname }}" - username: "{{ vcenter_username }}" - password: "{{ vcenter_password }}" - esxi_hostname: "{{ esxi_hostname }}" - validate_certs: False - switch_name: testvmx2-br-int - mtu: 9000 - delegate_to: localhost - - name: Create the vswitch - vmware_portgroup: - hostname: "{{ vcenter_hostname }}" - username: "{{ vcenter_username }}" - password: "{{ vcenter_password }}" - esxi_hostname: "{{ esxi_hostname }}" - validate_certs: False - switch_name: testvmx2-br-int - portgroup_name: testvmx2-br-int - network_policy: - promiscuous_mode: true - forged_transmits: true - mac_changes: true - vlan_id: 0 - delegate_to: localhost diff --git a/vm_deploy.yml b/vm_deploy.yml deleted file mode 100644 index 7e2499c..0000000 --- a/vm_deploy.yml +++ /dev/null @@ -1,39 +0,0 @@ ---- -- name: Create a VM from a template - hosts: vmware - gather_facts: no - tasks: - - name: Clone the template - vmware_guest: - hostname: "{{ vcenter_hostname }}" - username: "{{ vcenter_username }}" - password: "{{ vcenter_password }}" - esxi_hostname: "{{ esxi_hostname }}" - validate_certs: False - name: testvmx1_vfpc -# template: islet - folder: / - networks: - - name: NS-DEV-NAT - - name: testvmx-br-int - - name: srlab-vmx9-br-int - device_type: vmxnet3 - - name: srlab-vmx8-br-int - device_type: vmxnet3 - hardware: - num_cpus: 3 - memory_mb: 8192 - state: present -# guest_id: ubuntu64Guest -# disk: -# - size_gb: 10 -# type: thin -# datastore: datastore2 -# hardware: -# memory_mb: 512 -# num_cpus: 1 -# scsi: paravirtual -# datacenter: "{{ datacenter_name }}" -# cluster: "{{ cluster_name }}" -# wait_for_ip_address: yes - delegate_to: localhost diff --git a/vm_destroy.yml b/vm_destroy.yml deleted file mode 100755 index eece790..0000000 --- a/vm_destroy.yml +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env ansible-playbook ---- -- name: Create a VM from a template - hosts: vmware - gather_facts: no - tasks: - - name: Clone the template - vmware_guest: - hostname: "{{ vcenter_hostname }}" - username: "{{ vcenter_username }}" - password: "{{ vcenter_password }}" - esxi_hostname: "{{ esxi_hostname }}" - validate_certs: False - name: testvm_2 -# template: islet - folder: / - state: absent - force: yes -# guest_id: ubuntu64Guest -# disk: -# - size_gb: 10 -# type: thin -# datastore: datastore2 -# hardware: -# memory_mb: 512 -# num_cpus: 1 -# scsi: paravirtual -# datacenter: "{{ datacenter_name }}" -# cluster: "{{ cluster_name }}" -# wait_for_ip_address: yes - delegate_to: localhost