Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git-virl-hs-fulda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Rieger
git-virl-hs-fulda
Commits
f75a15b3
Commit
f75a15b3
authored
8 years ago
by
Sebastian Rieger
Browse files
Options
Downloads
Patches
Plain Diff
cloud-init scripts for LXCs fixed by Christoph Hardegen
parent
ba114218
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab2-dcn-fabricpath.virl
+184
-11
184 additions, 11 deletions
... Networks (Master AI)/advcompnet-lab2-dcn-fabricpath.virl
with
184 additions
and
11 deletions
GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab2-dcn-fabricpath.virl
+
184
−
11
View file @
f75a15b3
<?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.9
5
"
xsi:schemaLocation=
"http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9
5
/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
...
@@ -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
...
@@ -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
...
@@ -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
...
@@ -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
...
@@ -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
...
@@ -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]"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment