|
@ -1,9 +1,9 @@ |
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
|
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.9" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd"> |
|
|
|
|
|
|
|
|
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="management_network" type="String">exclusive</entry> |
|
|
<entry key="management_network" type="String">exclusive</entry> |
|
|
</extensions> |
|
|
</extensions> |
|
|
<node name="nxosv-spine1" type="SIMPLE" subtype="NX-OSv" location="353,94" ipv4="192.168.0.1"> |
|
|
|
|
|
|
|
|
<node name="nxosv-spine1" type="SIMPLE" subtype="NX-OSv" location="353,94"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="config" type="string">!Command: show running-config |
|
|
<entry key="config" type="string">!Command: show running-config |
|
|
!Time: Tue Jun 23 19:24:32 2015 |
|
|
!Time: Tue Jun 23 19:24:32 2015 |
|
@ -840,7 +840,7 @@ router bgp 1 |
|
|
<interface id="2" name="Ethernet2/3" ipv4="10.0.0.13" netPrefixLenV4="30"/> |
|
|
<interface id="2" name="Ethernet2/3" ipv4="10.0.0.13" netPrefixLenV4="30"/> |
|
|
<interface id="3" name="Ethernet2/4" ipv4="10.0.0.17" netPrefixLenV4="30"/> |
|
|
<interface id="3" name="Ethernet2/4" ipv4="10.0.0.17" netPrefixLenV4="30"/> |
|
|
</node> |
|
|
</node> |
|
|
<node name="nxosv-spine2" type="SIMPLE" subtype="NX-OSv" location="533,94" ipv4="192.168.0.2"> |
|
|
|
|
|
|
|
|
<node name="nxosv-spine2" type="SIMPLE" subtype="NX-OSv" location="533,94"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="config" type="string">!Command: show running-config |
|
|
<entry key="config" type="string">!Command: show running-config |
|
|
!Time: Tue Jun 23 19:24:33 2015 |
|
|
!Time: Tue Jun 23 19:24:33 2015 |
|
@ -1671,7 +1671,7 @@ router bgp 1 |
|
|
<interface id="2" name="Ethernet2/3" ipv4="10.0.0.29" netPrefixLenV4="30"/> |
|
|
<interface id="2" name="Ethernet2/3" ipv4="10.0.0.29" netPrefixLenV4="30"/> |
|
|
<interface id="3" name="Ethernet2/4" ipv4="10.0.0.33" netPrefixLenV4="30"/> |
|
|
<interface id="3" name="Ethernet2/4" ipv4="10.0.0.33" netPrefixLenV4="30"/> |
|
|
</node> |
|
|
</node> |
|
|
<node name="nxosv-leaf2" type="SIMPLE" subtype="NX-OSv" location="368,240" ipv4="192.168.0.4"> |
|
|
|
|
|
|
|
|
<node name="nxosv-leaf2" type="SIMPLE" subtype="NX-OSv" location="368,240"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
|
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
|
|
<entry key="config" type="String">!Command: show running-config
 |
|
|
<entry key="config" type="String">!Command: show running-config
 |
|
@ -2457,7 +2457,7 @@ router bgp 1
 |
|
|
<interface id="1" name="Ethernet2/2" ipv4="10.0.0.26" netPrefixLenV4="30"/> |
|
|
<interface id="1" name="Ethernet2/2" ipv4="10.0.0.26" netPrefixLenV4="30"/> |
|
|
<interface id="2" name="Ethernet2/3"/> |
|
|
<interface id="2" name="Ethernet2/3"/> |
|
|
</node> |
|
|
</node> |
|
|
<node name="nxosv-leaf3" type="SIMPLE" subtype="NX-OSv" location="532,240" ipv4="192.168.0.5"> |
|
|
|
|
|
|
|
|
<node name="nxosv-leaf3" type="SIMPLE" subtype="NX-OSv" location="532,240"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
|
|
<entry key="AutoNetkit.mgmt_ip" type="string"></entry> |
|
|
<entry key="config" type="String">!Command: show running-config
 |
|
|
<entry key="config" type="String">!Command: show running-config
 |
|
@ -3243,7 +3243,7 @@ router bgp 1
 |
|
|
<interface id="1" name="Ethernet2/2" ipv4="10.0.0.30" netPrefixLenV4="30"/> |
|
|
<interface id="1" name="Ethernet2/2" ipv4="10.0.0.30" netPrefixLenV4="30"/> |
|
|
<interface id="2" name="Ethernet2/3"/> |
|
|
<interface id="2" name="Ethernet2/3"/> |
|
|
</node> |
|
|
</node> |
|
|
<node name="nxosv-leaf4" type="SIMPLE" subtype="NX-OSv" location="712,240" ipv4="192.168.0.6"> |
|
|
|
|
|
|
|
|
<node name="nxosv-leaf4" type="SIMPLE" subtype="NX-OSv" location="712,240"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="config" type="string">!Command: show running-config |
|
|
<entry key="config" type="string">!Command: show running-config |
|
|
!Time: Tue Jun 23 19:24:30 2015 |
|
|
!Time: Tue Jun 23 19:24:30 2015 |
|
@ -4032,7 +4032,7 @@ router bgp 1 |
|
|
<interface id="1" name="Ethernet2/2" ipv4="10.0.0.18" netPrefixLenV4="30"/> |
|
|
<interface id="1" name="Ethernet2/2" ipv4="10.0.0.18" netPrefixLenV4="30"/> |
|
|
<interface id="2" name="Ethernet2/3"/> |
|
|
<interface id="2" name="Ethernet2/3"/> |
|
|
</node> |
|
|
</node> |
|
|
<node name="nxosv-leaf1" type="SIMPLE" subtype="NX-OSv" location="200,240" ipv4="192.168.0.11"> |
|
|
|
|
|
|
|
|
<node name="nxosv-leaf1" type="SIMPLE" subtype="NX-OSv" location="200,240"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="config" type="string">!Command: show running-config |
|
|
<entry key="config" type="string">!Command: show running-config |
|
|
!Time: Tue Jun 23 19:24:31 2015 |
|
|
!Time: Tue Jun 23 19:24:31 2015 |
|
@ -4833,34 +4833,207 @@ router bgp 1 |
|
|
<interface id="1" name="Ethernet2/2" ipv4="10.0.0.22" netPrefixLenV4="30"/> |
|
|
<interface id="1" name="Ethernet2/2" ipv4="10.0.0.22" netPrefixLenV4="30"/> |
|
|
<interface id="2" name="Ethernet2/3"/> |
|
|
<interface id="2" name="Ethernet2/3"/> |
|
|
</node> |
|
|
</node> |
|
|
<node name="lxc-iperf-1" type="SIMPLE" subtype="lxc-iperf" location="204,337" ipv4="192.168.100.1"> |
|
|
|
|
|
|
|
|
<node name="lxc-iperf-1" type="SIMPLE" subtype="lxc-iperf" location="198,337" ipv4="192.168.100.1"> |
|
|
|
|
|
<extensions> |
|
|
|
|
|
<entry key="config" type="String">#cloud-config
 |
|
|
|
|
|
bootcmd:
 |
|
|
|
|
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
|
|
|
|
|
hostname: lxc-iperf-1
 |
|
|
|
|
|
manage_etc_hosts: true
 |
|
|
|
|
|
runcmd:
 |
|
|
|
|
|
- systemctl start rc-local
 |
|
|
|
|
|
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
 |
|
|
|
|
|
- echo "UseDNS no" >> /etc/ssh/sshd_config
 |
|
|
|
|
|
- service ssh restart
 |
|
|
|
|
|
- service sshd restart
 |
|
|
|
|
|
users:
 |
|
|
|
|
|
- default
 |
|
|
|
|
|
- gecos: User configured by VIRL Configuration Engine 0.20.22
 |
|
|
|
|
|
lock-passwd: false
 |
|
|
|
|
|
name: cisco
 |
|
|
|
|
|
plain-text-passwd: cisco
 |
|
|
|
|
|
shell: /bin/bash
 |
|
|
|
|
|
ssh-authorized-keys:
 |
|
|
|
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
|
|
|
sudo: ALL=(ALL) ALL
 |
|
|
|
|
|
write_files:
 |
|
|
|
|
|
- path: /etc/systemd/system/dhclient@.service
 |
|
|
|
|
|
content: |
 |
|
|
|
|
|
[Unit]
 |
|
|
|
|
|
Description=Run dhclient on %i interface
 |
|
|
|
|
|
After=network.target
 |
|
|
|
|
|
[Service]
 |
|
|
|
|
|
Type=oneshot
 |
|
|
|
|
|
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
 |
|
|
|
|
|
RemainAfterExit=yes
 |
|
|
|
|
|
owner: root:root
 |
|
|
|
|
|
permissions: '0644'
 |
|
|
|
|
|
- path: /etc/rc.local
 |
|
|
|
|
|
owner: root:root
 |
|
|
|
|
|
permissions: '0755'
 |
|
|
|
|
|
content: |-
 |
|
|
|
|
|
#!/bin/sh
 |
|
|
|
|
|
ifconfig eth1 up 192.168.100.1 netmask 255.255.255.0
 |
|
|
|
|
|
exit 0
 |
|
|
|
|
|
</entry> |
|
|
|
|
|
</extensions> |
|
|
<interface id="0" name="eth1" ipv4="192.168.100.1" netPrefixLenV4="24"> |
|
|
<interface id="0" name="eth1" ipv4="192.168.100.1" netPrefixLenV4="24"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="AutoNetkit.vlan" type="Integer">10</entry> |
|
|
<entry key="AutoNetkit.vlan" type="Integer">10</entry> |
|
|
</extensions> |
|
|
</extensions> |
|
|
</interface> |
|
|
</interface> |
|
|
</node> |
|
|
</node> |
|
|
<node name="lxc-iperf-2" type="SIMPLE" subtype="lxc-iperf" location="371,337" ipv4="192.168.100.2"> |
|
|
|
|
|
|
|
|
<node name="lxc-iperf-2" type="SIMPLE" subtype="lxc-iperf" location="365,337" ipv4="192.168.100.2"> |
|
|
|
|
|
<extensions> |
|
|
|
|
|
<entry key="config" type="String">#cloud-config
 |
|
|
|
|
|
bootcmd:
 |
|
|
|
|
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
|
|
|
|
|
hostname: lxc-iperf-2
 |
|
|
|
|
|
manage_etc_hosts: true
 |
|
|
|
|
|
runcmd:
 |
|
|
|
|
|
- systemctl start rc-local
 |
|
|
|
|
|
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
 |
|
|
|
|
|
- echo "UseDNS no" >> /etc/ssh/sshd_config
 |
|
|
|
|
|
- service ssh restart
 |
|
|
|
|
|
- service sshd restart
 |
|
|
|
|
|
users:
 |
|
|
|
|
|
- default
 |
|
|
|
|
|
- gecos: User configured by VIRL Configuration Engine 0.20.22
 |
|
|
|
|
|
lock-passwd: false
 |
|
|
|
|
|
name: cisco
 |
|
|
|
|
|
plain-text-passwd: cisco
 |
|
|
|
|
|
shell: /bin/bash
 |
|
|
|
|
|
ssh-authorized-keys:
 |
|
|
|
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
|
|
|
sudo: ALL=(ALL) ALL
 |
|
|
|
|
|
write_files:
 |
|
|
|
|
|
- path: /etc/systemd/system/dhclient@.service
 |
|
|
|
|
|
content: |
 |
|
|
|
|
|
[Unit]
 |
|
|
|
|
|
Description=Run dhclient on %i interface
 |
|
|
|
|
|
After=network.target
 |
|
|
|
|
|
[Service]
 |
|
|
|
|
|
Type=oneshot
 |
|
|
|
|
|
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
 |
|
|
|
|
|
RemainAfterExit=yes
 |
|
|
|
|
|
owner: root:root
 |
|
|
|
|
|
permissions: '0644'
 |
|
|
|
|
|
- path: /etc/rc.local
 |
|
|
|
|
|
owner: root:root
 |
|
|
|
|
|
permissions: '0755'
 |
|
|
|
|
|
content: |-
 |
|
|
|
|
|
#!/bin/sh
 |
|
|
|
|
|
ifconfig eth1 up 192.168.100.2 netmask 255.255.255.0
 |
|
|
|
|
|
exit 0
 |
|
|
|
|
|
</entry> |
|
|
|
|
|
</extensions> |
|
|
<interface id="0" name="eth1" ipv4="192.168.100.2" netPrefixLenV4="24"> |
|
|
<interface id="0" name="eth1" ipv4="192.168.100.2" netPrefixLenV4="24"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="AutoNetkit.vlan" type="Integer">10</entry> |
|
|
<entry key="AutoNetkit.vlan" type="Integer">10</entry> |
|
|
</extensions> |
|
|
</extensions> |
|
|
</interface> |
|
|
</interface> |
|
|
</node> |
|
|
</node> |
|
|
<node name="lxc-iperf-3" type="SIMPLE" subtype="lxc-iperf" location="536,337" ipv4="192.168.100.3"> |
|
|
|
|
|
|
|
|
<node name="lxc-iperf-3" type="SIMPLE" subtype="lxc-iperf" location="529,336" ipv4="192.168.100.3"> |
|
|
|
|
|
<extensions> |
|
|
|
|
|
<entry key="config" type="String">#cloud-config
 |
|
|
|
|
|
bootcmd:
 |
|
|
|
|
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
|
|
|
|
|
hostname: lxc-iperf-3
 |
|
|
|
|
|
manage_etc_hosts: true
 |
|
|
|
|
|
runcmd:
 |
|
|
|
|
|
- systemctl start rc-local
 |
|
|
|
|
|
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
 |
|
|
|
|
|
- echo "UseDNS no" >> /etc/ssh/sshd_config
 |
|
|
|
|
|
- service ssh restart
 |
|
|
|
|
|
- service sshd restart
 |
|
|
|
|
|
users:
 |
|
|
|
|
|
- default
 |
|
|
|
|
|
- gecos: User configured by VIRL Configuration Engine 0.20.22
 |
|
|
|
|
|
lock-passwd: false
 |
|
|
|
|
|
name: cisco
 |
|
|
|
|
|
plain-text-passwd: cisco
 |
|
|
|
|
|
shell: /bin/bash
 |
|
|
|
|
|
ssh-authorized-keys:
 |
|
|
|
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
|
|
|
sudo: ALL=(ALL) ALL
 |
|
|
|
|
|
write_files:
 |
|
|
|
|
|
- path: /etc/systemd/system/dhclient@.service
 |
|
|
|
|
|
content: |
 |
|
|
|
|
|
[Unit]
 |
|
|
|
|
|
Description=Run dhclient on %i interface
 |
|
|
|
|
|
After=network.target
 |
|
|
|
|
|
[Service]
 |
|
|
|
|
|
Type=oneshot
 |
|
|
|
|
|
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
 |
|
|
|
|
|
RemainAfterExit=yes
 |
|
|
|
|
|
owner: root:root
 |
|
|
|
|
|
permissions: '0644'
 |
|
|
|
|
|
- path: /etc/rc.local
 |
|
|
|
|
|
owner: root:root
 |
|
|
|
|
|
permissions: '0755'
 |
|
|
|
|
|
content: |-
 |
|
|
|
|
|
#!/bin/sh
 |
|
|
|
|
|
ifconfig eth1 up 192.168.100.3 netmask 255.255.255.0
 |
|
|
|
|
|
exit 0
 |
|
|
|
|
|
</entry> |
|
|
|
|
|
</extensions> |
|
|
<interface id="0" name="eth1" ipv4="192.168.100.3" netPrefixLenV4="24"> |
|
|
<interface id="0" name="eth1" ipv4="192.168.100.3" netPrefixLenV4="24"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="AutoNetkit.vlan" type="Integer">10</entry> |
|
|
<entry key="AutoNetkit.vlan" type="Integer">10</entry> |
|
|
</extensions> |
|
|
</extensions> |
|
|
</interface> |
|
|
</interface> |
|
|
</node> |
|
|
</node> |
|
|
<node name="lxc-iperf-4" type="SIMPLE" subtype="lxc-iperf" location="715,337" ipv4="192.168.100.4"> |
|
|
|
|
|
|
|
|
<node name="lxc-iperf-4" type="SIMPLE" subtype="lxc-iperf" location="711,333" ipv4="192.168.100.4"> |
|
|
|
|
|
<extensions> |
|
|
|
|
|
<entry key="config" type="String">#cloud-config
 |
|
|
|
|
|
bootcmd:
 |
|
|
|
|
|
- ln -s -t /etc/rc.d /etc/rc.local
 |
|
|
|
|
|
hostname: lxc-iperf-4
 |
|
|
|
|
|
manage_etc_hosts: true
 |
|
|
|
|
|
runcmd:
 |
|
|
|
|
|
- systemctl start rc-local
 |
|
|
|
|
|
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
 |
|
|
|
|
|
- echo "UseDNS no" >> /etc/ssh/sshd_config
 |
|
|
|
|
|
- service ssh restart
 |
|
|
|
|
|
- service sshd restart
 |
|
|
|
|
|
users:
 |
|
|
|
|
|
- default
 |
|
|
|
|
|
- gecos: User configured by VIRL Configuration Engine 0.20.22
 |
|
|
|
|
|
lock-passwd: false
 |
|
|
|
|
|
name: cisco
 |
|
|
|
|
|
plain-text-passwd: cisco
 |
|
|
|
|
|
shell: /bin/bash
 |
|
|
|
|
|
ssh-authorized-keys:
 |
|
|
|
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
|
|
|
sudo: ALL=(ALL) ALL
 |
|
|
|
|
|
write_files:
 |
|
|
|
|
|
- path: /etc/systemd/system/dhclient@.service
 |
|
|
|
|
|
content: |
 |
|
|
|
|
|
[Unit]
 |
|
|
|
|
|
Description=Run dhclient on %i interface
 |
|
|
|
|
|
After=network.target
 |
|
|
|
|
|
[Service]
 |
|
|
|
|
|
Type=oneshot
 |
|
|
|
|
|
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
 |
|
|
|
|
|
RemainAfterExit=yes
 |
|
|
|
|
|
owner: root:root
 |
|
|
|
|
|
permissions: '0644'
 |
|
|
|
|
|
- path: /etc/rc.local
 |
|
|
|
|
|
owner: root:root
 |
|
|
|
|
|
permissions: '0755'
 |
|
|
|
|
|
content: |-
 |
|
|
|
|
|
#!/bin/sh
 |
|
|
|
|
|
ifconfig eth1 up 192.168.100.4 netmask 255.255.255.0
 |
|
|
|
|
|
exit 0
 |
|
|
|
|
|
</entry> |
|
|
|
|
|
</extensions> |
|
|
<interface id="0" name="eth1" ipv4="192.168.100.4" netPrefixLenV4="24"> |
|
|
<interface id="0" name="eth1" ipv4="192.168.100.4" netPrefixLenV4="24"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="AutoNetkit.vlan" type="Integer">10</entry> |
|
|
<entry key="AutoNetkit.vlan" type="Integer">10</entry> |
|
|
</extensions> |
|
|
</extensions> |
|
|
</interface> |
|
|
</interface> |
|
|
</node> |
|
|
</node> |
|
|
|
|
|
<annotations/> |
|
|
<connection dst="/virl:topology/virl:node[3]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[2]"/> |
|
|
<connection dst="/virl:topology/virl:node[3]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[2]"/> |
|
|
<connection dst="/virl:topology/virl:node[2]/virl:interface[2]" src="/virl:topology/virl:node[3]/virl:interface[2]"/> |
|
|
<connection dst="/virl:topology/virl:node[2]/virl:interface[2]" src="/virl:topology/virl:node[3]/virl:interface[2]"/> |
|
|
<connection dst="/virl:topology/virl:node[1]/virl:interface[3]" src="/virl:topology/virl:node[4]/virl:interface[1]"/> |
|
|
<connection dst="/virl:topology/virl:node[1]/virl:interface[3]" src="/virl:topology/virl:node[4]/virl:interface[1]"/> |
|
|