Network Resource
1) Get all the networks define in the network table
# curl -X GET "http://10.6.31.1:5000/api/v2/inventory/subnets" -H "accept: application/json" | grep name | grep -v mgtifname
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2069 100 2069 0 0 53271 0 --:--:-- --:--:-- --:--:-- 54447
"name": "172_21_0_0-255_255_0_0"
"name": "30_5_0_0-255_255_0_0"
"name": "40_5_0_0-255_255_0_0"
"name": "10_0_0_0-255_0_0_0"
"name": "172_20_0_0-255_255_0_0"
This for https://github.ibm.com/xcat2/task_management/issues/141
Route Resource 1) Get all the routes defined in the route table
2) delete 21net from route table
3) POST 21net to route table
4) Patch 21net, modify net
5) PUT (replace) 21net
Network Resource 1) Get all the networks define in the network table