Skip to content

Commit

Permalink
Update NTC lab
Browse files Browse the repository at this point in the history
  • Loading branch information
knewell committed Sep 27, 2018
1 parent 9c8f1e9 commit 561d256
Show file tree
Hide file tree
Showing 26 changed files with 946 additions and 1,421 deletions.
8 changes: 8 additions & 0 deletions core-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
- name: Gather facts (junos)
junos_facts:
when: ansible_network_os == 'junos'
- name: Gather facts (ios)
ios_facts:
when: ansible_network_os == 'ios'
- name: create the directory for the configuration
file: path=core_config state=directory
run_once: true
Expand Down Expand Up @@ -56,6 +59,11 @@
src: core_config/{{inventory_hostname}}-config.txt
when: ansible_network_os == 'eos'

- name: Load config (ios)
ios_config:
src: core_config/{{inventory_hostname}}-config.txt
when: ansible_network_os == 'ios'

# - name: load the configuration to the devices
# napalm_install_config:
# hostname: "{{ ansible_host }}"
Expand Down
6 changes: 3 additions & 3 deletions core/core-model-csr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ bgp:
- inet
- inet-vpn

#ospf:
# area: 0
# network: p2p
ospf:
area: 0
network: p2p

#isis:
# network: p2p
103 changes: 103 additions & 0 deletions core_config/ansible-csr1-config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
!
service timestamps debug datetime msec
service timestamps log datetime msec
no platform punt-keepalive disable-kernel-core
platform console auto
!
hostname ansible-csr1
!
vrf definition MANAGEMENT
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
!
no aaa new-model
!
no ip domain lookup
ip domain name ntc.com
!
subscriber templating
!
multilink bundle-name authenticated
!
!
license udi pid CSR1000V sn 9KXI0D7TVFI
diagnostic bootup level minimal
archive
path bootflash:archive
!
spanning-tree extend system-id
netconf-yang cisco-odm on-demand-enable
netconf-yang cisco-odm polling-enable
netconf-yang
restconf
!
username ntc privilege 15 password 0 ntc123
!
redundancy
!
lldp run
cdp run
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip ospf 1 area 0
!
interface GigabitEthernet1
vrf forwarding MANAGEMENT
ip address 10.0.0.51 255.255.255.0
negotiation auto
!
interface GigabitEthernet4
no shutdown
ip address 172.10.12.1 255.255.255.0
negotiation auto
!
!
interface GigabitEthernet3
no shutdown
ip address 172.10.14.1 255.255.255.0
negotiation auto
!
!
interface GigabitEthernet2
no shutdown
ip address 172.10.13.1 255.255.255.0
negotiation auto
!
!
!
router ospf 1
router-id 1.1.1.1
network 172.10.12.1 0.0.0.255 area 0
network 172.10.14.1 0.0.0.255 area 0
network 172.10.13.1 0.0.0.255 area 0
virtual-service csr_mgmt
!
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
!
ip route vrf MANAGEMENT 0.0.0.0 0.0.0.0 10.0.0.2
ip scp server enable
!
control-plane
!
alias exec ntcclear clear platform software vnic-if nv
!
line con 0
stopbits 1
line vty 0 4
privilege level 15
login local
transport preferred ssh
line vty 5 30
privilege level 15
login local
transport preferred ssh
!
103 changes: 103 additions & 0 deletions core_config/ansible-csr2-config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
!
service timestamps debug datetime msec
service timestamps log datetime msec
no platform punt-keepalive disable-kernel-core
platform console auto
!
hostname ansible-csr2
!
vrf definition MANAGEMENT
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
!
no aaa new-model
!
no ip domain lookup
ip domain name ntc.com
!
subscriber templating
!
multilink bundle-name authenticated
!
!
license udi pid CSR1000V sn 9KXI0D7TVFI
diagnostic bootup level minimal
archive
path bootflash:archive
!
spanning-tree extend system-id
netconf-yang cisco-odm on-demand-enable
netconf-yang cisco-odm polling-enable
netconf-yang
restconf
!
username ntc privilege 15 password 0 ntc123
!
redundancy
!
lldp run
cdp run
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip ospf 1 area 0
!
interface GigabitEthernet1
vrf forwarding MANAGEMENT
ip address 10.0.0.52 255.255.255.0
negotiation auto
!
interface GigabitEthernet4
no shutdown
ip address 172.10.12.2 255.255.255.0
negotiation auto
!
!
interface GigabitEthernet3
no shutdown
ip address 172.10.23.2 255.255.255.0
negotiation auto
!
!
interface GigabitEthernet2
no shutdown
ip address 172.10.25.2 255.255.255.0
negotiation auto
!
!
!
router ospf 1
router-id 2.2.2.2
network 172.10.12.2 0.0.0.255 area 0
network 172.10.23.2 0.0.0.255 area 0
network 172.10.25.2 0.0.0.255 area 0
virtual-service csr_mgmt
!
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
!
ip route vrf MANAGEMENT 0.0.0.0 0.0.0.0 10.0.0.2
ip scp server enable
!
control-plane
!
alias exec ntcclear clear platform software vnic-if nv
!
line con 0
stopbits 1
line vty 0 4
privilege level 15
login local
transport preferred ssh
line vty 5 30
privilege level 15
login local
transport preferred ssh
!
96 changes: 96 additions & 0 deletions core_config/ansible-csr3-config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
!
service timestamps debug datetime msec
service timestamps log datetime msec
no platform punt-keepalive disable-kernel-core
platform console auto
!
hostname ansible-csr3
!
vrf definition MANAGEMENT
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
!
no aaa new-model
!
no ip domain lookup
ip domain name ntc.com
!
subscriber templating
!
multilink bundle-name authenticated
!
!
license udi pid CSR1000V sn 9KXI0D7TVFI
diagnostic bootup level minimal
archive
path bootflash:archive
!
spanning-tree extend system-id
netconf-yang cisco-odm on-demand-enable
netconf-yang cisco-odm polling-enable
netconf-yang
restconf
!
username ntc privilege 15 password 0 ntc123
!
redundancy
!
lldp run
cdp run
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip ospf 1 area 0
!
interface GigabitEthernet1
vrf forwarding MANAGEMENT
ip address 10.0.0.53 255.255.255.0
negotiation auto
!
interface GigabitEthernet3
no shutdown
ip address 172.10.23.3 255.255.255.0
negotiation auto
!
!
interface GigabitEthernet2
no shutdown
ip address 172.10.13.3 255.255.255.0
negotiation auto
!
!
!
router ospf 1
router-id 3.3.3.3
network 172.10.23.3 0.0.0.255 area 0
network 172.10.13.3 0.0.0.255 area 0
virtual-service csr_mgmt
!
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
!
ip route vrf MANAGEMENT 0.0.0.0 0.0.0.0 10.0.0.2
ip scp server enable
!
control-plane
!
alias exec ntcclear clear platform software vnic-if nv
!
line con 0
stopbits 1
line vty 0 4
privilege level 15
login local
transport preferred ssh
line vty 5 30
privilege level 15
login local
transport preferred ssh
!
Loading

0 comments on commit 561d256

Please sign in to comment.