vtn-path-policy

Base Information

prefix pathpolicy
namespace urn:opendaylight:vtn:pathpolicy
revision 2015-02-09
description The module that describes the path policy configuration.
yang-version 1
imports vtype:vtn-types 2015-02-09;

Groupings Summary

Name Description
vtn-path-policy-config Describes configuration for a path policy.
vtn-path-cost-config Describes the cost of using specific switch link for packet transmission.
vtn-port-desc-result Describes a pair of `vtn-port-desc' and `vtn-update-type'. This grouping is used as output of RPC that modifies the link cost configuration in a path policy.

Child Nodes Summary

Name Description
vtn-path-policies The root container of all the path policy configurations. Note that the path policy configuration must be modified by RPC. Do not edit this container directly.

RPCs Summary

Name Description
remove-path-cost Remove link cost configurations for all the given switch ports in the given path policy configuration. Values passed to `port-desc' list will be copied to the RPC output, and `status' field in `vtn-port-desc-result' describes the result of the opration. `REMOVED' indicates that the link cost configuration for the switch port associated with the `vtn-port-desc' value has been successfully removed. Null indicates that the link cost configuration for the switch port specified by `port-desc' was not configured in the specified path policy. On failure, one of vtn-error-tag value which indicates the cause of error is set into application tag in RPC error. `BADREQUEST' is set if the RPC input contains invalid data. `NOTFOUND' is set if the specified path policy is not present. `INTERNALERROR' is set if the operation failed due to internal error.
set-path-cost Associate the cost of transmitting a packet with the specified switch port in the specified path policy. This operation takes a list of `vtn-path-cost-config', and put all configurations in that list into the specified path policy. Switch port descriptors specified in the RPC input will be copied to the RPC output, and `status' field in `vtn-port-desc-result' describes the result of the opration. `CREATED' indicates that the link cost configuration for the switch port specified by `port-desc' has been newly created. 'CHANGED' indicates that the link cost configuration for the switch port specified by `port-desc' has been successfully changed. Null indicates that the link cost configuration for the switch port specified by `port-desc' was not changed. On failure, one of vtn-error-tag value which indicates the cause of error is set into application tag in RPC error. `BADREQUEST' is set if the RPC input contains invalid data. `NOTFOUND' is set if the specified path policy is not present. `INTERNALERROR' is set if the operation failed due to internal error.
clear-path-policy Remove all the path policies. `status' in RPC output descripts the result of the operation. `REMOVED' indicates that at least one path policy has been removed. Null indicates that no path policy is present. On failure, one of vtn-error-tag value which indicates the cause of error is set into application tag in RPC error. `INTERNALERROR' is set if the operation failed due to internal error.
set-path-policy Create or modify the path policy. If the path policy specified by the path policy ID does not exist, a new path policy will be associated with the specified ID. If the path policy specified by the path policy ID already exists, it will be modified as specified by the RPC input. `status' in RPC output describes the result of the operation. `CREATED' indicates that the specified path policy has been newly created. `CHANGED' indicates that existing path policy configuration has been successfully changed. Null indicates that existing path policy configuration was not changed. On failure, one of vtn-error-tag value which indicates the cause of error is set into application tag in RPC error. `BADREQUEST' is set if the RPC input contains invalid data. `NOTFOUND' is set if true is set to `present' field in the RPC input and the target path policy is not present. `INTERNALERROR' is set if the operation failed due to internal error.
remove-path-policy Remove the path policy specified by the path policy identifier. On failure, one of vtn-error-tag value which indicates the cause of error is set into application tag in RPC error. `BADREQUEST' is set if the RPC input contains invalid data. `NOTFOUND' is set if the specified path policy is not present. `INTERNALERROR' is set if the operation failed due to internal error.

Groupings

Datastore Structure

vtn-path-policy

Child nodes

Direct children

vtn-path-policies

XML Path
Restconf path
vtn-path-policy:vtn-path-policies

Direct children

XML example

        <vtn-path-policies xmlns="urn:opendaylight:vtn:pathpolicy">
        
            <!-- See definition
             for child nodes.  -->
            <!-- This node could appear multiple times -->
            <vtn-path-policy xmlns="urn:opendaylight:vtn:pathpolicy">...</vtn-path-policy>
        
        </vtn-path-policies>
    

vtn-path-policies/vtn-path-policy

XML Path
Restconf path
vtn-path-policy:vtn-path-policies/vtn-path-policy/{id}

Direct children

XML example

        <vtn-path-policy xmlns="urn:opendaylight:vtn:pathpolicy">
        
            <id xmlns="urn:opendaylight:vtn:pathpolicy">...</id>
        
            <default-cost xmlns="urn:opendaylight:vtn:pathpolicy">...</default-cost>
        
            <!-- See definition
             for child nodes.  -->
            <!-- This node could appear multiple times -->
            <vtn-path-cost xmlns="urn:opendaylight:vtn:pathpolicy">...</vtn-path-cost>
        
        </vtn-path-policy>
    

vtn-path-policies/vtn-path-policy/vtn-path-cost

XML Path
Restconf path
vtn-path-policy:vtn-path-policies/vtn-path-policy/{id}/vtn-path-cost/{port-desc}

Direct children

XML example

        <vtn-path-cost xmlns="urn:opendaylight:vtn:pathpolicy">
        
            <port-desc xmlns="urn:opendaylight:vtn:pathpolicy">...</port-desc>
        
            <cost xmlns="urn:opendaylight:vtn:pathpolicy">...</cost>
        
        </vtn-path-cost>
    

RPC Definitions

remove-path-cost

set-path-cost

clear-path-policy

set-path-policy

remove-path-policy