Skip to content

Mirror of the OpenDaylight alto gerrit project

Notifications You must be signed in to change notification settings

opendaylight/alto

Repository files navigation

TODO

  1. Use routed RPC service to implement ALTO instances. Also see examples.

Test service models for ALTO

resourcepool
{
    "input": {
        "service-reference":"/alto-resourcepool:context[alto-resourcepool:context-id='00000000-0000-0000-0000-000000000000']/alto-resourcepool:resource[alto-resourcepool:resource-id='test-model-base']/alto-resourcepool:context-tag[alto-resourcepool:tag='NEED TO CHECK THE RESOURCEPOOL']"
    }
}

networkmap
{
    "input": {
        "service-reference":"/alto-resourcepool:context[alto-resourcepool:context-id='00000000-0000-0000-0000-000000000000']/alto-resourcepool:resource[alto-resourcepool:resource-id='test-model-networkmap']/alto-resourcepool:context-tag[alto-resourcepool:tag='NEED TO CHECK THE RESOURCEPOOL']",
        "type":"alto-model-networkmap:resource-type-networkmap",
        "networkmap-filter": {
            "pid": ["PID1", "PID2", "PID3"],
            "address-type": [
                "alto-model-networkmap:address-type-ipv4",
                "alto-model-networkmap:address-type-ipv6"
            ]
        }
    }
}

costmap
{
    "input": {
        "service-reference":"/alto-resourcepool:context[alto-resourcepool:context-id='00000000-0000-0000-0000-000000000000']/alto-resourcepool:resource[alto-resourcepool:resource-id='test-model-costmap']/alto-resourcepool:context-tag[alto-resourcepool:tag='b781f0ee38e74b07b89e03a26c50ff3e']",
        "type":"alto-model-costmap:resource-type-costmap",
        "costmap-params": {
            "cost-type": {
                "cost-mode": "ordinal",
                "cost-metric": "routingcost"
            },
            "costmap-filter": {
                "pid-source": ["PID1"],
                "pid-destination": ["PID1","PID2","PID3"]
            }
        }
    }
}

endpointcost
{
    "input": {
        "service-reference":"/alto-resourcepool:context[alto-resourcepool:context-id='00000000-0000-0000-0000-000000000000']/alto-resourcepool:resource[alto-resourcepool:resource-id='test-model-endpointcost']/alto-resourcepool:context-tag[alto-resourcepool:tag='NEED TO CHECK THE RESOURCEPOOL']",
        "type":"alto-model-endpointcost:resource-type-endpointcost",
        "endpointcost-params": {
            "cost-type": {
                "cost-mode": "ordinal",
                "cost-metric": "routingcost"
            },
            "endpoint-filter": {
                "source": [
                    {"ipv4": "192.168.0.1"},
                    {"ipv4": "192.168.0.2"}
                ],
                "destination": [
                    {"ipv4": "192.168.1.1"},
                    {"ipv4": "192.168.1.2"}
                ]
            }
        }
    }
}


endpointproperty
{
    "input": {
        "service-reference":"/alto-resourcepool:context[alto-resourcepool:context-id='00000000-0000-0000-0000-000000000000']/alto-resourcepool:resource[alto-resourcepool:resource-id='test-model-endpointproperty']/alto-resourcepool:context-tag[alto-resourcepool:tag='89a179d3000a4f44b423c86261ce36ff']",
        "type":"alto-model-endpointproperty:resource-type-endpointproperty",
        "endpointproperty-params": {
            "endpointproperty-filter": {
		"property-filter":[
			{"resource-specific-property": "my-default-networkmap.pid"},
			{"global-property": "priv:ietf-example-prop"}
		],
                "endpoint-filter": [
                       {"ipv4": "192.168.0.1"},
                       {"ipv4": "192.168.0.2"}
                ]
            }

        }
    }
}