{ | |
"comment": " 10 router 3 city topology description and configuration", | |
"restrictSwitches": true, | |
"restrictLinks": true, | |
"switchConfig": | |
[ | |
{ "nodeDpid": "00:01", "name": "SFO-ER1", "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, | |
"subnets": [ | |
{ "portNo": 1, "subnetIp": "10.0.1.128/24" } | |
] | |
} | |
}, | |
{ "nodeDpid": "00:02", "name": "SFO-CR2", "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": [ | |
{ "adjSid": 12453 , "ports": [ 2 ,3 ] } | |
] | |
} | |
}, | |
{ "nodeDpid": "00:03", "name": "SFO-CR3", "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 | |
} | |
}, | |
{ "nodeDpid": "00:04", "name": "Dallas-CR4", "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 | |
} | |
}, | |
{ "nodeDpid": "00:05", "name": "Dallas-CR5", "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 | |
} | |
}, | |
{ "nodeDpid": "00:06", "name": "Dallas-ER6", "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, | |
"subnets": [ | |
{ "portNo": 1, "subnetIp": "7.7.7.128/24" } | |
] | |
} | |
}, | |
{ "nodeDpid": "00:07", "name": "NewYork-ER7", "type": "Router_SR", "allowed": true, | |
"latitude": 80.80, "longitude": 90.10, | |
"params": { "routerIp": "192.168.0.7/32", | |
"routerMac": "00:00:00:00:07:80", | |
"nodeSid": 107, | |
"isEdgeRouter" : true, | |
"adjacencySids": [ | |
{ "adjSid": 12345 , "ports": [ 2 ,3 ] } | |
], | |
"subnets": [ | |
{ "portNo": 1, "subnetIp": "10.1.1.128/24" } | |
] | |
} | |
}, | |
{ "nodeDpid": "00:08", "name": "NewYork-CR8", "type": "Router_SR", "allowed": true, | |
"latitude": 80.80, "longitude": 90.10, | |
"params": { "routerIp": "192.168.0.8/32", | |
"routerMac": "00:00:00:00:08:80", | |
"nodeSid": 108, | |
"isEdgeRouter" : false, | |
"adjacencySids": [ | |
{ "adjSid": 88888, "ports": [ 3, 6, 4 ] } | |
] | |
} | |
}, | |
{ "nodeDpid": "00:09", "name": "NewYork-CR9", "type": "Router_SR", "allowed": true, | |
"latitude": 80.80, "longitude": 90.10, | |
"params": { "routerIp": "192.168.0.9/32", | |
"routerMac": "00:00:00:00:09:80", | |
"nodeSid": 109, | |
"isEdgeRouter" : false | |
} | |
}, | |
{ "nodeDpid": "00:0a", "name": "NewYork-ER10", "type": "Router_SR", "allowed": true, | |
"latitude": 80.80, "longitude": 90.10, | |
"params": { "routerIp": "192.168.0.10/32", | |
"routerMac": "00:00:00:00:0a:80", | |
"nodeSid": 110, | |
"isEdgeRouter" : true, | |
"subnets": [ | |
{ "portNo": 1, "subnetIp": "10.1.2.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 } | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "07", "nodeDpid2": "08", | |
"params": { "port1": 2, "port2": 1 } | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "09", "nodeDpid2": "0a", | |
"params": { "port1": 2, "port2": 2} | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "02", "nodeDpid2": "09", | |
"params": { "port1": 4, "port2": 3 } | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "02", "nodeDpid2": "08", | |
"params": { "port1": 5, "port2": 3 } | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "05", "nodeDpid2": "08", | |
"params": { "port1": 4, "port2": 4 } | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "08", "nodeDpid2": "0a", | |
"params": { "port1": 5, "port2": 3} | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "09", "nodeDpid2": "07", | |
"params": { "port1": 4, "port2": 3} | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "09", "nodeDpid2": "08", | |
"params": { "port1": 1, "port2": 2} | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "01", "nodeDpid2": "03", | |
"params": { "port1": 4, "port2": 4} | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "02", "nodeDpid2": "08", | |
"params": { "port1": 6, "port2": 6} | |
}, | |
{ "type": "pktLink", "allowed": true, | |
"nodeDpid1": "09", "nodeDpid2": "05", | |
"params": { "port1": 5, "port2": 5} | |
} | |
] | |
} |