5 Alto-manager provides extends karaf shell interface for you to create and delete maps and set properties for odl datastore. All functions are implemented by restconf in the backend.
7 Alto-Manager supports three different commands.
10 Load maps from file and put them into odl datastore
15 alto:create <map-type> <file-path>
17 alto:create command supports three different map types, `network-map, cost-map and endpoint-property-map`.
20 * **network-map**: JSON Array of RFC formatted network maps.
21 * **cost-map**: JSON Array of RFC formatted cost maps.
22 * **endpoint-property-map**: Single RFC formatted endpoint property map
24 File examples can be found at ./alto-manager/examples/.
27 Exceptions will be thrown if you try to:
29 * Sepecify wrong map-type
33 alto:create network-map ./examples/network-map-rfc
34 alto:create cost-map ./examples/cost-map-rfc
35 alto:create endpoint-property-map ./examples/cost-map-rfc
40 Delete map from odl datastore.
45 alto:delete <map-type> <resource-id or null>
47 alto:delete command supports three different map types, `network-map, cost-map and endpoint-property-map`.
49 If you are going to delete a network map or cost map, the second option should be set to resource id of the map. If you are going to delete endpoint-property-map, the second option should not be set.
52 Exceptions will be thrown if you try to:
54 * Sepecify unsupported map type
55 * Delete a map which does not exist
56 * Delete the default network map
57 * Delete a cost map or network map without specifying the resource id
58 * Delete the endpoint propery map with a resource id
62 alto:delete network-map my-default-network-map
63 alto:create cost-map new-network-map-routingcost-numerical
64 alto:create endpoint-property-map
68 Set specific field for old datastore. **Currently only "default-network-map" field for IRD resource is supported.**
73 alto:set <propety-name> <property-value>
77 Exceptions will be thrown if you try to:
79 * Sepecify unsupported map type
80 * Network map specified by resource id does not exist
84 alto:set default-network-map <network-map-resource-id>
88 * Support URI for alto:create