initial artemis application commit
Change-Id: I01967b1e8e8df08cf95a2865566423a4aeb34ea9
diff --git a/tools/tutorials/artemis/configs/R1-quagga.conf b/tools/tutorials/artemis/configs/R1-quagga.conf
new file mode 100644
index 0000000..271a18f
--- /dev/null
+++ b/tools/tutorials/artemis/configs/R1-quagga.conf
@@ -0,0 +1,14 @@
+!
+hostname bgp
+password sdnip
+!
+!
+router bgp 65001
+ bgp router-id 1.1.1.1
+ network 10.0.0.0/8
+ neighbor 10.0.0.3 remote-as 65001
+ neighbor 150.1.1.1 remote-as 65003
+ neighbor 150.1.2.2 remote-as 65002
+!
+
+log stdout
\ No newline at end of file
diff --git a/tools/tutorials/artemis/configs/R2-quagga.conf b/tools/tutorials/artemis/configs/R2-quagga.conf
new file mode 100644
index 0000000..bacdafd
--- /dev/null
+++ b/tools/tutorials/artemis/configs/R2-quagga.conf
@@ -0,0 +1,14 @@
+!
+hostname bgp
+password sdnip
+!
+!
+router bgp 65002
+ bgp router-id 2.2.2.2
+ network 20.0.0.0/8
+ neighbor 150.1.2.1 remote-as 65001
+ neighbor 150.1.3.2 remote-as 65004
+!
+
+
+log stdout
\ No newline at end of file
diff --git a/tools/tutorials/artemis/configs/R3-quagga.conf b/tools/tutorials/artemis/configs/R3-quagga.conf
new file mode 100644
index 0000000..d02b053
--- /dev/null
+++ b/tools/tutorials/artemis/configs/R3-quagga.conf
@@ -0,0 +1,12 @@
+!
+hostname bgp
+password sdnip
+!
+!
+router bgp 65003
+ bgp router-id 3.3.3.3
+ network 30.0.0.0/8
+ neighbor 150.1.1.2 remote-as 65001
+!
+
+log stdout
\ No newline at end of file
diff --git a/tools/tutorials/artemis/configs/R4-quagga.conf b/tools/tutorials/artemis/configs/R4-quagga.conf
new file mode 100644
index 0000000..777d866
--- /dev/null
+++ b/tools/tutorials/artemis/configs/R4-quagga.conf
@@ -0,0 +1,16 @@
+!
+hostname bgp
+password sdnip
+!
+!
+router bgp 65004
+bgp router-id 4.4.4.4
+ network 40.0.0.0/8
+ neighbor 10.10.10.2 remote-as 65004
+ neighbor 10.10.10.2 port 2000
+ neighbor 150.1.3.1 remote-as 65002
+ neighbor 150.1.3.1 next-hop-self
+!
+
+
+log stdout
\ No newline at end of file
diff --git a/tools/tutorials/artemis/configs/exabgp.conf b/tools/tutorials/artemis/configs/exabgp.conf
new file mode 100644
index 0000000..1dfd456
--- /dev/null
+++ b/tools/tutorials/artemis/configs/exabgp.conf
@@ -0,0 +1,20 @@
+group r1 {
+ router-id 10.0.0.3;
+
+ process message-logger {
+ encoder json;
+ receive {
+ parsed;
+ update;
+ neighbor-changes;
+ }
+ run ./absolute/path/to/onos/tools/tutorials/artemis/server.py;
+ }
+
+ neighbor 10.0.0.1 {
+ local-address 10.0.0.3;
+ local-as 65001;
+ peer-as 65001;
+ }
+
+}
diff --git a/tools/tutorials/artemis/configs/network-cfg.json b/tools/tutorials/artemis/configs/network-cfg.json
new file mode 100644
index 0000000..8b5d56f
--- /dev/null
+++ b/tools/tutorials/artemis/configs/network-cfg.json
@@ -0,0 +1,84 @@
+{
+ "ports" : {
+ "of:00002a45d713e141/2" : {
+ "interfaces" : [
+ {
+ "name" : "sw1-1",
+ "ips" : [ "150.1.3.2/30" ],
+ "mac" : "e2:f5:32:16:9a:46"
+ }
+ ]
+ },
+ "of:00002a45d713e141/3" : {
+ "interfaces" : [
+ {
+ "name" : "sw1-1",
+ "ips" : [ "40.0.0.1/24" ],
+ "mac" : "e2:f5:32:16:9a:46"
+ }
+ ]
+ }
+ },
+ "apps" : {
+ "org.onosproject.router" : {
+ "bgp" : {
+ "bgpSpeakers" : [
+ {
+ "name" : "speaker1",
+ "connectPoint" : "of:00002a45d713e141/4",
+ "peers" : [
+ "150.1.3.1"
+ ]
+ }
+ ]
+ }
+ },
+ "org.onosproject.reactive.routing" : {
+ "reactiveRouting" : {
+ "ip4LocalPrefixes" : [
+ {
+ "ipPrefix" : "40.0.0.0/24",
+ "type" : "PUBLIC",
+ "gatewayIp" : "40.0.0.1"
+ },
+ {
+ "ipPrefix" : "150.1.3.0/30",
+ "type" : "PRIVATE",
+ "gatewayIp" : "150.1.3.2"
+ }
+ ],
+ "ip6LocalPrefixes" : [
+ ],
+ "virtualGatewayMacAddress" : "e2:f5:32:16:9a:46"
+ }
+ },
+ "org.onosproject.artemis" : {
+ "artemis" : {
+ "prefixes" : [
+ {
+ "prefix" : "40.0.0.0/8",
+ "paths" : [
+ {
+ "origin" : 65004,
+ "neighbor" : [
+ {
+ "asn" : 65002,
+ "neighbor": [
+ 65001
+ ]
+ }
+ ]
+ }
+ ],
+ "moas" : [ ]
+ }
+ ],
+ "frequency" : 3000,
+ "monitors" : {
+ "ripe" : [ ],
+ "exabgp": [ "192.168.1.2:5000" ]
+ }
+ }
+ }
+ }
+}
diff --git a/tools/tutorials/artemis/configs/zebra.conf b/tools/tutorials/artemis/configs/zebra.conf
new file mode 100644
index 0000000..eafc15e
--- /dev/null
+++ b/tools/tutorials/artemis/configs/zebra.conf
@@ -0,0 +1,5 @@
+! Configuration for zebra (NB: it is the same for all routers)
+!
+hostname zebra
+password sdnip
+log stdout
\ No newline at end of file