onos> devices
id=of:00003c2c99ea8b1d, available=true, local-status=connected 30m13s ago, role=MASTER, type=SWITCH, mfr=Accton Corp., hw=x86-64-accton-as6812-32x-r0, sw=ofdpa 3.0.5.5+accton2.3-1, serial=681232X1826021, chassis=3c2c99ea8b1d, driver=accton-ofdpa3, channelId=
10.209.173.72:55386, locType=none, managementAddress=10.209.173.72, name=Leaf-1, protocol=OF_13
id=of:00003c2c99ea8b9f, available=true, local-status=connected 30m13s ago, role=MASTER, type=SWITCH, mfr=Accton Corp., hw=x86-64-accton-as6812-32x-r0, sw=ofdpa 3.0.5.5+accton2.3-1, serial=681232X1826022, chassis=3c2c99ea8b9f, driver=accton-ofdpa3, channelId=
10.209.173.71:36570, locType=none, managementAddress=10.209.173.71, name=Spine-1, protocol=OF_13
id=of:00003c2c99ea91b7, available=true, local-status=connected 30m12s ago, role=MASTER, type=SWITCH, mfr=Accton Corp., hw=x86-64-accton-as6812-32x-r0, sw=ofdpa 3.0.5.5+accton2.3-1, serial=681232X1826034, chassis=3c2c99ea91b7, driver=accton-ofdpa3, channelId=
10.209.173.73:41348, locType=none, managementAddress=10.209.173.73, name=Leaf-2, protocol=OF_13
onos> netcfg
{
"devices" : {
"of:00003c2c99ea8b1d" : {
"basic" : {
"name" : "Leaf-1"
},
"segmentrouting" : {
"name" : "Leaf-R1",
"ipv4NodeSid" : 101,
"ipv4Loopback" : "10.209.173.72",
"routerMac" : "3c:2c:99:ea:8b:1d",
"isEdgeRouter" : true,
"adjacencySids" : [ ]
}
},
"of:00003c2c99ea8b9f" : {
"basic" : {
"name" : "Spine-1"
},
"segmentrouting" : {
"name" : "Spine-R1",
"ipv4NodeSid" : 201,
"ipv4Loopback" : "10.209.173.71",
"routerMac" : "3c:2c:99:ea:8b:9f",
"isEdgeRouter" : false,
"adjacencySids" : [ ]
}
},
"of:00003c2c99ea91b7" : {
"segmentrouting" : {
"name" : "Leaf-R2",
"ipv4NodeSid" : 102,
"ipv4Loopback" : "10.209.173.73",
"routerMac" : "3c:2c:99:ea:91:b7",
"isEdgeRouter" : true,
"adjacencySids" : [ ]
},
"basic" : {
"name" : "Leaf-2"
}
}
},
"layouts" : { },
"apps" : {
"org.onosproject.provider.lldp" : {
"suppression" : {
"deviceTypes" : [ "ROADM", "OTN", "FIBER_SWITCH", "OPTICAL_AMPLIFIER" ],
"annotation" : "{\"no-lldp\":null}"
}
}
},
"ports" : {
"of:00003c2c99ea91b7/2" : {
"interfaces" : [ {
"vlan-untagged" : 20,
"mac" : "3C:2C:99:EA:91:B7"
} ]
},
"of:00003c2c99ea8b1d/1" : {
"interfaces" : [ {
"vlan-untagged" : 10,
"mac" : "3C:2C:99:EA:8B:1D"
} ]
},
"of:00003c2c99ea91b7/1" : {
"interfaces" : [ {
"vlan-untagged" : 10,
"mac" : "3C:2C:99:EA:91:B7"
} ]
}
},
"links" : { },
"regions" : { },
"hosts" : {
"F8:F2:1E:35:AC:71/None" : {
"basic" : {
"ips" : [ "10.6.1.2" ],
"locations" : [ "of:00003c2c99ea91b7/1" ]
}
},
"F8:F2:1E:35:AC:01/None" : {
"basic" : {
"ips" : [ "10.6.2.3" ],
"locations" : [ "of:00003c2c99ea91b7/2" ]
}
},
"F8:F2:1E:35:AF:11/None" : {
"basic" : {
"ips" : [ "10.6.1.1" ],
"locations" : [ "of:00003c2c99ea8b1d/1" ]
}
}
}
}
Need Help.
I have a default route point to the management interface and another specifc route to interface gateway of 10.6.1.254 - for leaf-1 GW.
Please help.