IP Route Table
Displays the IPv4 route table information. The URI to fetch the route table entries is:
restconf/operations/iproute
Supported HTTP Operations
URL: https://<host>/restconf/operations/iproute
Request body: {
"icx-openconfig-iproute:input": {
"route-table": {
"all" : true
}
}
}
Response body:
{
"icx-openconfig-iproute:output" : {
"result" : "show ip route\nTotal number of IP routes: 12\nType Codes - B:BGP D:Connected O:OSPF R:RIP S:Static;
Cost - Dist/Metric\nBGP Codes - i:iBGP e:eBGP\nOSPF Codes - i:Inter Area 1:External Type 1 2:External Type 2\nSTATIC
Codes - v:Inter-VRF\n Destination Gateway Port Cost Type Uptime\n1 0.0.0.0/0 10.177.112.1 e mgmt1 1/1 S 4m50s \n2 10.177.112.0/25 DIRECT e mgmt1 0/0 D 4m51s \n3 70.1.31.0/24 DIRECT ve 4001 0/0 D 4m52s \n4 70.1.32.0/24 DIRECT ve 4002 0/0 D 4m52s \n5 70.1.33.0/24 DIRECT ve 4003 0/0 D 4m52s \n6 70.1.34.0/24 DIRECT ve 4004 0/0 D 4m52s \n7 70.1.35.0/24 DIRECT ve 4005 0/0 D 4m52s \n8 70.1.36.0/24 DIRECT ve 4006 0/0 D 4m52s \n9 70.1.37.0/24 DIRECT ve 4007 0/0 D 4m52s \n10 70.1.38.0/24 DIRECT ve 4008 0/0 D 4m52s \n11 70.1.39.0/24 DIRECT ve 4009 0/0 D 4m52s \n12 70.1.40.0/24 DIRECT ve 4010 0/0 D 4m52s \n"
}
}