Adding a couple of sr config files
Change-Id: I5b250cdbbadc7837f6b6eb085bb360caeef1ebb0
diff --git a/conf/sr-3node.conf b/conf/sr-3node.conf
new file mode 100644
index 0000000..19eeff5
--- /dev/null
+++ b/conf/sr-3node.conf
@@ -0,0 +1,79 @@
+{
+ "comment": " Segment routing topology description and configuration",
+ "restrictSwitches": true,
+ "restrictLinks": true,
+
+ "switchConfig":
+ [
+ { "nodeDpid": "00:01", "name": "Dallas-R1", "type": "Router_SR", "allowed": true,
+ "latitude": 80.80, "longitude": 90.10,
+ "params": { "routerIp": "192.168.0.1/32",
+ "routerMac": "00:00:01:01:01:80",
+ "nodeSid": 101,
+ "isEdgeRouter" : true,
+ "adjacencySids": [
+ { "portNo": 6, "adjSid": 10234 },
+ { "portNo": 7, "adjSid": 29019 }
+ ],
+ "subnets": [
+ { "portNo": 1, "subnetIp": "10.0.1.128/24" },
+ { "portNo": 2, "subnetIp": "10.0.1.128/24" },
+ { "portNo": 3, "subnetIp": "10.0.1.128/24" },
+ { "portNo": 4, "subnetIp": "10.0.2.128/24" },
+ { "portNo": 5, "subnetIp": "10.0.3.128/24" }
+ ]
+ }
+ },
+
+ { "nodeDpid": "00:02", "name": "Dallas-R2", "type": "Router_SR", "allowed": true,
+ "latitude": 80.80, "longitude": 90.10,
+ "params": { "routerIp": "192.168.0.2/32",
+ "routerMac": "00:00:02:02:02:80",
+ "nodeSid": 102,
+ "isEdgeRouter" : false,
+ "adjacencySids": [
+ { "portNo": 1, "adjSid": 12453 },
+ { "portNo": 2, "adjSid": 23333 },
+ { "portNo": 3, "adjSid": 22233 }
+ ]
+ }
+ },
+
+ { "nodeDpid": "00:03", "name": "Dallas-R3", "type": "Router_SR", "allowed": true,
+ "latitude": 80.80, "longitude": 90.10,
+ "params": { "routerIp": "192.168.0.3/32",
+ "routerMac": "00:00:07:07:07:80",
+ "nodeSid": 103,
+ "isEdgeRouter" : true,
+ "adjacencySids": [
+ { "portNo": 2, "adjSid": 92033 }
+ ],
+ "subnets": [
+ { "portNo": 1, "subnetIp": "7.7.7.128/24" }
+ ]
+ }
+ }
+
+ ],
+
+ "linkConfig":[
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "01", "nodeDpid2": "02",
+ "params": { "port1": 6, "port2": 1 }
+ },
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "01", "nodeDpid2": "02",
+ "params": { "port1": 7, "port2": 3 }
+ },
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "02", "nodeDpid2": "03",
+ "params": { "port1": 2, "port2": 2 }
+ }
+
+ ]
+
+
+}
diff --git a/conf/sr-ecmp.conf b/conf/sr-ecmp.conf
new file mode 100644
index 0000000..a6c2d79
--- /dev/null
+++ b/conf/sr-ecmp.conf
@@ -0,0 +1,135 @@
+{
+ "comment": " Multilayer topology description and configuration",
+ "restrictSwitches": true,
+ "restrictLinks": true,
+
+ "switchConfig":
+ [
+ { "nodeDpid": "00:01", "name": "Dallas-R1", "type": "Router_SR", "allowed": true,
+ "latitude": 80.80, "longitude": 90.10,
+ "params": { "routerIp": "192.168.0.1/32",
+ "routerMac": "00:00:01:01:01:80",
+ "nodeSid": 101,
+ "isEdgeRouter" : true,
+ "adjacencySids": [
+ { "portNo": 6, "adjSid": 10234 },
+ { "portNo": 7, "adjSid": 29019 }
+ ],
+ "subnets": [
+ { "portNo": 1, "subnetIp": "10.0.1.128/24" }
+ ]
+ }
+ },
+
+ { "nodeDpid": "00:02", "name": "Dallas-R2", "type": "Router_SR", "allowed": true,
+ "latitude": 80.80, "longitude": 90.10,
+ "params": { "routerIp": "192.168.0.2/32",
+ "routerMac": "00:00:02:02:02:80",
+ "nodeSid": 102,
+ "isEdgeRouter" : false,
+ "adjacencySids": [
+ { "portNo": 1, "adjSid": 12453 },
+ { "portNo": 2, "adjSid": 23333 },
+ { "portNo": 3, "adjSid": 22233 }
+ ]
+ }
+ },
+
+ { "nodeDpid": "00:03", "name": "Dallas-R3", "type": "Router_SR", "allowed": true,
+ "latitude": 80.80, "longitude": 90.10,
+ "params": { "routerIp": "192.168.0.3/32",
+ "routerMac": "00:00:03:03:03:80",
+ "nodeSid": 103,
+ "isEdgeRouter" : false,
+ "adjacencySids": [
+ { "portNo": 2, "adjSid": 92033 }
+ ]
+ }
+ },
+
+ { "nodeDpid": "00:04", "name": "Dallas-R4", "type": "Router_SR", "allowed": true,
+ "latitude": 80.80, "longitude": 90.10,
+ "params": { "routerIp": "192.168.0.4/32",
+ "routerMac": "00:00:04:04:04:80",
+ "nodeSid": 104,
+ "isEdgeRouter" : false,
+ "adjacencySids": [
+ { "portNo": 2, "adjSid": 92033 }
+ ]
+ }
+ },
+
+ { "nodeDpid": "00:05", "name": "Dallas-R5", "type": "Router_SR", "allowed": true,
+ "latitude": 80.80, "longitude": 90.10,
+ "params": { "routerIp": "192.168.0.5/32",
+ "routerMac": "00:00:05:05:05:80",
+ "nodeSid": 105,
+ "isEdgeRouter" : false,
+ "adjacencySids": [
+ { "portNo": 2, "adjSid": 92033 }
+ ]
+ }
+ },
+
+ { "nodeDpid": "00:06", "name": "Dallas-R6", "type": "Router_SR", "allowed": true,
+ "latitude": 80.80, "longitude": 90.10,
+ "params": { "routerIp": "192.168.0.6/32",
+ "routerMac": "00:00:07:07:07:80",
+ "nodeSid": 106,
+ "isEdgeRouter" : true,
+ "adjacencySids": [
+ { "portNo": 2, "adjSid": 92033 }
+ ],
+ "subnets": [
+ { "portNo": 1, "subnetIp": "7.7.7.128/24" }
+ ]
+ }
+ }
+
+ ],
+
+ "linkConfig":[
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "01", "nodeDpid2": "02",
+ "params": { "port1": 2, "port2": 1 }
+ },
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "01", "nodeDpid2": "03",
+ "params": { "port1": 3, "port2": 1 }
+ },
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "02", "nodeDpid2": "03",
+ "params": { "port1": 2, "port2": 2 }
+ },
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "02", "nodeDpid2": "05",
+ "params": { "port1": 3, "port2": 1 }
+ },
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "03", "nodeDpid2": "04",
+ "params": { "port1": 3, "port2": 1 }
+ },
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "04", "nodeDpid2": "05",
+ "params": { "port1": 2, "port2": 2 }
+ },
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "04", "nodeDpid2": "06",
+ "params": { "port1": 3, "port2": 2 }
+ },
+
+ { "type": "pktLink", "allowed": true,
+ "nodeDpid1": "05", "nodeDpid2": "06",
+ "params": { "port1": 3, "port2": 3 }
+ }
+
+ ]
+
+}