Skip to content

Commit

Permalink
Update lab branch
Browse files Browse the repository at this point in the history
  • Loading branch information
knewell committed Sep 17, 2018
1 parent c3075dd commit aaecb11
Show file tree
Hide file tree
Showing 22 changed files with 692 additions and 127 deletions.
Binary file added I2_SR_configs.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion core-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
- name: Load config (junos)
junos_config:
src: core_config/{{inventory_hostname}}-config.txt
update: replace
update: override
comment: Ansible config update
when: ansible_network_os == 'junos'

Expand Down
114 changes: 114 additions & 0 deletions core/core-model-veos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
---

common:
bgp_asn: 65000

nodes:
- name: ansible-veos1
mgmt: 10.39.0.41
rid: 10.39.8.41
sid: 10
iso: 49.0001.0010.0100.1001.00

- name: ansible-veos2
mgmt: 10.39.0.42
rid: 10.39.8.42
sid: 20
iso: 49.0001.0010.0100.1002.00

- name: ansible-veos3
mgmt: 10.39.0.43
rid: 10.39.8.43
sid: 30
iso: 49.0001.0010.0100.1003.00

- name: ansible-veos4
mgmt: 10.39.0.44
rid: 10.39.8.44
sid: 40
iso: 49.0001.0010.0100.1004.00

- name: ansible-veos5
mgmt: 10.39.0.55
rid: 10.39.8.55
sid: 50
iso: 49.0001.0010.0100.1005.00
lu: 163.253.39.165

- name: ansible-veos55
mgmt: 10.39.0.155
rid: 10.39.8.155

- name: ansible-veos6
mgmt: 10.39.0.56
rid: 10.39.8.56
sid: 60
iso: 49.0001.0010.0100.1006.00
lu: 163.253.39.165

- name: ansible-veos66
mgmt: 10.39.0.156
rid: 10.39.8.156

links:
- {left: ansible-veos1, left_port: Ethernet1, left_ip: 172.10.12.1,
right: ansible-veos2, right_port: Ethernet1, right_ip: 172.10.12.2,
cost: 10, mpls: True, iso: True }

- {left: ansible-veos1, left_port: Ethernet2, left_ip: 172.10.13.1,
right: ansible-veos3, right_port: Ethernet1, right_ip: 172.10.13.3,
cost: 10, mpls: True, iso: True }

# - {left: ansible-veos1, left_port: Ethernet3, left_ip: 172.10.14.1,
# right: ansible-veos4, right_port: Ethernet1, right_ip: 172.10.14.4,
# cost: 10, mpls: True, iso: True }

- {left: ansible-veos1, left_port: Ethernet4, left_ip: 172.10.15.1,
right: ansible-veos5, right_port: Ethernet1, right_ip: 172.10.15.5,
cost: 10, mpls: True, iso: True }

# - {left: ansible-veos2, left_port: Ethernet2, left_ip: 172.10.23.2,
# right: ansible-veos3, right_port: Ethernet2, right_ip: 172.10.23.3,
# cost: 10, mpls: True, iso: True }

- {left: ansible-veos2, left_port: Ethernet3, left_ip: 172.10.24.2,
right: ansible-veos4, right_port: Ethernet2, right_ip: 172.10.24.4,
cost: 10, mpls: True, iso: True }

- {left: ansible-veos2, left_port: Ethernet4, left_ip: 172.10.25.2,
right: ansible-veos5, right_port: Ethernet2, right_ip: 172.10.25.5,
cost: 10, mpls: True, iso: True }

- {left: ansible-veos3, left_port: Ethernet3, left_ip: 172.10.34.3,
right: ansible-veos4, right_port: Ethernet3, right_ip: 172.10.34.4,
cost: 10, mpls: True, iso: True }

- {left: ansible-veos3, left_port: Ethernet4, left_ip: 172.10.36.3,
right: ansible-veos6, right_port: Ethernet1, right_ip: 172.10.36.6,
cost: 10, mpls: True, iso: True }

- {left: ansible-veos4, left_port: Ethernet4, left_ip: 172.10.46.4,
right: ansible-veos6, right_port: Ethernet2, right_ip: 172.10.46.6,
cost: 10, mpls: True, iso: True }

- {left: ansible-veos5, left_port: Ethernet3, left_ip: 172.10.55.5,
right: ansible-veos55, right_port: Ethernet1, right_ip: 172.10.55.55,
}

- {left: ansible-veos6, left_port: Ethernet3, left_ip: 172.10.66.6,
right: ansible-veos66, right_port: Ethernet1, right_ip: 172.10.66.66,
}

bgp:
rr: [10.39.8.41]
clients: [10.39.8.42, 10.39.8.43, 10.39.8.44]
af:
- inet
- inet-vpn

#ospf:
# area: 0
# network: p2p

#isis:
# network: p2p
33 changes: 24 additions & 9 deletions core/core-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,21 @@ nodes:
iso: 49.0001.0010.0100.1005.00
lu: 163.253.39.165

- name: ansible-veos55
mgmt: 10.39.0.155
rid: 10.39.8.155

- name: ansible-veos6
mgmt: 10.39.0.56
rid: 10.39.8.56
sid: 60
iso: 49.0001.0010.0100.1006.00
lu: 163.253.39.165

- name: ansible-veos66
mgmt: 10.39.0.156
rid: 10.39.8.156

links:
- {left: ansible-vmx1, left_port: ge-0/0/0, left_ip: 172.10.12.1,
right: ansible-vmx2, right_port: ge-0/0/0, right_ip: 172.10.12.2,
Expand All @@ -51,17 +59,17 @@ links:
right: ansible-vmx3, right_port: ge-0/0/0, right_ip: 172.10.13.3,
cost: 10, mpls: True, iso: True }

- {left: ansible-vmx1, left_port: ge-0/0/2, left_ip: 172.10.14.1,
right: ansible-vmx4, right_port: ge-0/0/0, right_ip: 172.10.14.4,
cost: 10, mpls: True, iso: True }
# - {left: ansible-vmx1, left_port: ge-0/0/2, left_ip: 172.10.14.1,
# right: ansible-vmx4, right_port: ge-0/0/0, right_ip: 172.10.14.4,
# cost: 10, mpls: True, iso: True }

- {left: ansible-vmx1, left_port: ge-0/0/3, left_ip: 172.10.15.1,
right: ansible-veos5, right_port: Ethernet1, right_ip: 172.10.15.5,
cost: 10, mpls: True, iso: True }

- {left: ansible-vmx2, left_port: ge-0/0/1, left_ip: 172.10.23.2,
right: ansible-vmx3, right_port: ge-0/0/1, right_ip: 172.10.23.3,
cost: 10, mpls: True, iso: True }
# - {left: ansible-vmx2, left_port: ge-0/0/1, left_ip: 172.10.23.2,
# right: ansible-vmx3, right_port: ge-0/0/1, right_ip: 172.10.23.3,
# cost: 10, mpls: True, iso: True }

- {left: ansible-vmx2, left_port: ge-0/0/2, left_ip: 172.10.24.2,
right: ansible-vmx4, right_port: ge-0/0/1, right_ip: 172.10.24.4,
Expand All @@ -83,17 +91,24 @@ links:
right: ansible-veos6, right_port: Ethernet2, right_ip: 172.10.46.6,
cost: 10, mpls: True, iso: True }

- {left: ansible-veos5, left_port: Ethernet3, left_ip: 172.10.55.5,
right: ansible-veos55, right_port: Ethernet1, right_ip: 172.10.55.55,
}

- {left: ansible-veos6, left_port: Ethernet3, left_ip: 172.10.66.6,
right: ansible-veos66, right_port: Ethernet1, right_ip: 172.10.66.66,
}

bgp:
rr: [10.39.8.41]
clients: [10.39.8.42, 10.39.8.43, 10.39.8.44]
af:
- inet
- inet-vpn
- inet-lu

#ospf:
# area: 0
# network: p2p

isis:
network: p2p
#isis:
# network: p2p
13 changes: 10 additions & 3 deletions core/core-to-nodes.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ nodes:
{{ node.name }}:
mgmt: {{ node.mgmt }}
rid: {{ node.rid }}
{% if node.sid is defined %}
sid: {{ node.sid }}
{% endif %}
{% if node.iso is defined %}
iso: {{ node.iso }}
{% endif %}
links:
{% for link in links %}
{% if link.left == node.name %}
Expand All @@ -39,14 +43,17 @@ nodes:
{% for peer in bgp.rr %}
- {{ peer }}
{% endfor %}
{% endif %}
{% if node.lu is defined %}
{% if node.lu is defined %}
- {{ node.lu }}
{% endif %}
{% endif %}
{% endif %}
af:
{% for af in bgp.af %}
- {{ af }}
{% endfor %}
{% if node.lu is defined %}
- inet-lu
{% endif %}
{% endif %}
{% if ospf is defined %}
ospf:
Expand Down
91 changes: 91 additions & 0 deletions core_config/ansible-veos1-config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
!
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
!
Loading

0 comments on commit aaecb11

Please sign in to comment.