Skip to content

Commit

Permalink
Ditching roles for the time being
Browse files Browse the repository at this point in the history
  • Loading branch information
knewell committed Jan 25, 2019
1 parent 90f6e32 commit d56d579
Show file tree
Hide file tree
Showing 53 changed files with 1,858 additions and 16 deletions.
8 changes: 2 additions & 6 deletions core-deploy.yml → deploy-topo.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
---
## First Play
- hosts: localhost
name: Create per node data model
gather_facts: no
tags: [ model ]
vars_files:
- "core/{{model|default('core-model.yml')}}"
tasks:
- name: Create per-node data model from fabric data model
template: src=core/core-to-nodes.j2 dest=./nodes.yml
roles:
- deploy-topo.yml

## Second Play
- name: Generate Configuration for all routers
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
171 changes: 171 additions & 0 deletions files/srlab-config/srlab-vmx1-config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@

version VERSION
system {
host-name srlab-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 "srlab-vmx2"
unit 0 {
family inet {
address 10.0.0.0.0/31
}
family mpls;
family iso;
}
}

ge-0/0/1 {
description "srlab-vmx4"
unit 0 {
family inet {
address 10.0.0.2/31
}
family mpls;
family iso;
}
}

ge-0/0/2 {
description "srlab-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;
}
}
}
}
154 changes: 154 additions & 0 deletions files/srlab-config/srlab-vmx2-config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@

version VERSION
system {
host-name srlab-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 "srlab-vmx1"
unit 0 {
family inet {
address 10.0.0.0.1/31
}
family mpls;
family iso;
}
}

ge-0/0/1 {
description "srlab-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;
}
}
}
}
Loading

0 comments on commit d56d579

Please sign in to comment.