Skip to content

Instantly share code, notes, and snippets.

@gunjan5
Created March 8, 2016 21:52
Show Gist options
  • Select an option

  • Save gunjan5/0ccfcb4f31fec0092a3b to your computer and use it in GitHub Desktop.

Select an option

Save gunjan5/0ccfcb4f31fec0092a3b to your computer and use it in GitHub Desktop.
{
"ports" : {
"of:0000000000000021/1" : {
"interfaces" : [
{
"ips" : [ "10.2.20.1/16" ],
"vlan" : "-1"
}
]
},
"of:0000000000000021/2" : {
"interfaces" : [
{
"ips" : [ "10.2.20.1/16" ],
"vlan" : "-1"
}
]
},
"of:0000000000000022/3" : {
"interfaces" : [
{
"ips" : [ "10.2.20.2/16" ],
"vlan" : "-1"
}
]
},
"of:0000000000000022/4" : {
"interfaces" : [
{
"ips" : [ "10.2.20.2/16" ],
"vlan" : "-1"
}
]
}
},
"devices" : {
"of:0000000000000021" : {
"segmentrouting" : {
"name" : "leaf-1",
"nodeSid" : 101,
"routerIp" : "10.2.20.1",
"routerMac" : "cc:37:ab:7c:b9:d6",
"isEdgeRouter" : true,
"adjacencySids" : []
}
},
"of:0000000000000022" : {
"segmentrouting" : {
"name" : "leaf-2",
"nodeSid" : 102,
"routerIp" : "10.2.20.2",
"routerMac" : "cc:37:ab:7c:ba:da",
"isEdgeRouter" : true,
"adjacencySids" : []
}
},
"of:0000000000000011" : {
"segmentrouting" : {
"name" : "spine-1",
"nodeSid" : 103,
"routerIp" : "10.2.30.1",
"routerMac" : "cc:37:ab:7c:be:68",
"isEdgeRouter" : false,
"adjacencySids" : []
}
},
"of:0000000000000012" : {
"segmentrouting" : {
"name" : "spine-2",
"nodeSid" : 104,
"routerIp" : "10.2.30.2",
"routerMac" : "cc:37:ab:7c:bf:ee",
"isEdgeRouter" : false,
"adjacencySids" : []
}
}
},
"hosts" : {
"68:05:ca:30:00:f8/4093" : {
"basic": {
"ips": ["10.3.1.1"],
"location": "of:0000000000000021/1"
}
},
"68:05:ca:30:05:38/4093" : {
"basic": {
"ips": ["10.3.2.1"],
"location": "of:0000000000000021/2"
}
},
"68:05:ca:30:00:39/4093" : {
"basic": {
"ips": ["10.3.3.2"],
"location": "of:0000000000000022/3"
}
},
"68:05:ca:30:02:71/4093" : {
"basic": {
"ips": ["10.3.4.2"],
"location": "of:0000000000000022/4"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment