Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 144 additions & 0 deletions isis/isis-topo-spb/munet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
#
# +---------+
# | |
# | RT1 |
# | 1.1.1.1 |
# | |
# +---------+
# |eth-sw1
# |
# |
# |
# +---------+ | +---------+
# | | | | |
# | RT2 |eth-sw1 | eth-sw1| RT3 |
# | 2.2.2.2 +----------+----------+ 3.3.3.3 |
# | | 10.0.1.0/24 | |
# +---------+ +---------+
# eth-rt4-1| |eth-rt4-2 eth-rt5-1| |eth-rt5-2
# | | | |
# 10.0.2.0/24| |10.0.3.0/24 10.0.4.0/24| |10.0.5.0/24
# | | | |
# eth-rt2-1| |eth-rt2-2 eth-rt3-1| |eth-rt3-2
# +---------+ +---------+
# | | | |
# | RT4 | 10.0.6.0/24 | RT5 |
# | 4.4.4.4 +---------------------+ 5.5.5.5 |
# | |eth-rt5 eth-rt4| |
# +---------+ +---------+
# eth-rt6| |eth-rt6
# | |
# 10.0.7.0/24| |10.0.8.0/24
# | +---------+ |
# | | | |
# | | RT6 | |
# +----------+ 6.6.6.6 +-----------+
# eth-rt4| |eth-rt5
# +---------+
#
# L1: All
#
# The interfaces connected to the sw1 LAN are configured in the broadcast mode.
# All other interfaces are configured in the point-to-point mode.
#

---

version: 1
kinds:
- name : holo
cmd: |
protocol_name=holo-isis
topology_name=topo-spb
sleep_time=60
events_file=holo-events-isis-main.jsonl
cd /tmp/munet/${MUNET_NODENAME}/holo.setup
./setup.sh ${protocol_name} ${topology_name} ${sleep_time} ${events_file}

volumes:
- "./%NAME%/etc.holo:/etc/holo/"
- "%RUNDIR%/var.log:/var/log"
- "%RUNDIR%/var.opt.holo:/var/opt/holo"
- "%CONFIGDIR%/../../setup:%RUNDIR%/holo.setup"

topology:
ipv6-enable: true
networks-autonumber: true
networks:
- name: net1
ip: 10.0.1.0/24
- name: net2
ip: 10.0.2.0/24
- name: net3
ip: 10.0.3.0/24
- name: net4
ip: 10.0.4.0/24
- name: net5
ip: 10.0.5.0/24
- name: net6
ip: 10.0.6.0/24
- name: net7
ip: 10.0.7.0/24
- name: net8
ip: 10.0.8.0/24
nodes:
- name: rt1
kind: holo
connections:
- to: net1
name: "eth-sw1"
- name: rt2
kind: holo
connections:
- to: net1
name: "eth-sw1"
- to: net2
name: "eth-rt4-1"
- to: net3
name: "eth-rt4-2"
- name: rt3
kind: holo
connections:
- to: net1
name: "eth-sw1"
- to: net4
name: "eth-rt5-1"
- to: net5
name: "eth-rt5-2"
- name: rt4
kind: holo
connections:
- to: net2
name: "eth-rt2-1"
- to: net3
name: "eth-rt2-2"
- to: net6
name: "eth-rt5"
- to: net7
name: "eth-rt6"
- name: rt5
kind: holo
connections:
- to: net4
name: "eth-rt3-1"
- to: net5
name: "eth-rt3-2"
- to: net6
name: "eth-rt4"
- to: net8
name: "eth-rt6"
- name: rt6
kind: holo
connections:
- to: net7
name: "eth-rt4"
- to: net8
name: "eth-rt5"

cli:
commands:
- name: "holo-cli"
exec: holo-cli
format: "holo-cli ROUTER [ROUTER ...]"
new-window: true
kinds: ["holo"]
35 changes: 35 additions & 0 deletions isis/isis-topo-spb/rt1/etc.holo/holo.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
system hostname rt1
!
interfaces interface lo
type iana-if-type:ethernetCsmacd
!
!
interfaces interface eth-sw1
type iana-if-type:ethernetCsmacd
!
routing control-plane-protocols control-plane-protocol ietf-isis:isis main
isis level-type level-1
isis system-id 0000.0000.0001
isis area-address 49.0000
isis metric-type value wide-only
isis spb enable true
!
isis spb service 00:00:00:00:00:01 1001
isid 10001
isid 10002
!
isis spb service 00:00:00:00:00:01 1002
isid 20001
transmit true
receive true
!
isid 20002
transmit true
receive false
!
!
isis interfaces interface eth-sw1
hello-interval value 3
priority value 1
!
!
34 changes: 34 additions & 0 deletions isis/isis-topo-spb/rt2/etc.holo/holo.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
system hostname rt2
!
interfaces interface lo
type iana-if-type:ethernetCsmacd
!
!
interfaces interface eth-sw1
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt4-1
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt4-2
type iana-if-type:ethernetCsmacd
!
routing control-plane-protocols control-plane-protocol ietf-isis:isis main
isis level-type level-1
isis system-id 0000.0000.0002
isis area-address 49.0000
isis metric-type value wide-only
isis spb enable true
!
isis interfaces interface eth-sw1
hello-interval value 3
priority value 2
!
isis interfaces interface eth-rt4-1
interface-type point-to-point
hello-interval value 3
!
isis interfaces interface eth-rt4-2
interface-type point-to-point
!
!
38 changes: 38 additions & 0 deletions isis/isis-topo-spb/rt3/etc.holo/holo.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
system hostname rt3
!
interfaces interface lo
type iana-if-type:ethernetCsmacd
!
!
interfaces interface eth-sw1
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt5-1
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt5-2
type iana-if-type:ethernetCsmacd
!
routing control-plane-protocols control-plane-protocol ietf-isis:isis main
isis level-type level-1
isis system-id 0000.0000.0003
isis area-address 49.0000
isis metric-type value wide-only
isis spb enable true
!
isis interfaces interface eth-sw1
hello-interval value 3
priority value 3
!
!
isis interfaces interface eth-rt5-1
interface-type point-to-point
hello-interval value 3
!
!
isis interfaces interface eth-rt5-2
interface-type point-to-point
hello-interval value 3
!
!
!
46 changes: 46 additions & 0 deletions isis/isis-topo-spb/rt4/etc.holo/holo.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
system hostname rt4
!
interfaces interface lo
type iana-if-type:ethernetCsmacd
!
!
interfaces interface eth-rt2-1
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt2-2
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt5
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt6
type iana-if-type:ethernetCsmacd
!
routing control-plane-protocols control-plane-protocol ietf-isis:isis main
isis level-type level-1
isis system-id 0000.0000.0004
isis area-address 49.0000
isis metric-type value wide-only
isis spb enable true
!
isis interfaces interface eth-rt2-1
interface-type point-to-point
hello-interval value 3
!
!
isis interfaces interface eth-rt2-2
interface-type point-to-point
hello-interval value 3
!
!
isis interfaces interface eth-rt5
interface-type point-to-point
hello-interval value 3
!
!
isis interfaces interface eth-rt6
interface-type point-to-point
hello-interval value 3
!
!
!
46 changes: 46 additions & 0 deletions isis/isis-topo-spb/rt5/etc.holo/holo.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
system hostname rt5
!
interfaces interface lo
type iana-if-type:ethernetCsmacd
!
!
interfaces interface eth-rt3-1
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt3-2
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt4
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt6
type iana-if-type:ethernetCsmacd
!
routing control-plane-protocols control-plane-protocol ietf-isis:isis main
isis level-type level-1
isis system-id 0000.0000.0005
isis area-address 49.0000
isis metric-type value wide-only
isis spb enable true
!
isis interfaces interface eth-rt3-1
interface-type point-to-point
hello-interval value 3
!
!
isis interfaces interface eth-rt3-2
interface-type point-to-point
hello-interval value 3
!
!
isis interfaces interface eth-rt4
interface-type point-to-point
hello-interval value 3
!
!
isis interfaces interface eth-rt6
interface-type point-to-point
hello-interval value 3
!
!
!
45 changes: 45 additions & 0 deletions isis/isis-topo-spb/rt6/etc.holo/holo.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
system hostname rt6
!
interfaces interface lo
type iana-if-type:ethernetCsmacd
!
!
interfaces interface eth-rt4
type iana-if-type:ethernetCsmacd
!
interfaces interface eth-rt5
type iana-if-type:ethernetCsmacd
!
routing control-plane-protocols control-plane-protocol ietf-isis:isis main
isis level-type level-1
isis system-id 0000.0000.0006
isis area-address 49.0000
isis metric-type value wide-only
isis spb enable true
!
isis spb service 00:00:00:00:00:02 2001
isid 10021
isid 10022
!
isis spb service 00:00:00:00:00:02 2002
isid 20021
transmit true
receive true
!
isid 20022
transmit true
receive false
!
!
!
isis interfaces interface eth-rt4
interface-type point-to-point
hello-interval value 3
!
!
isis interfaces interface eth-rt5
interface-type point-to-point
hello-interval value 3
!
!
!