NETCONF Configuration Guide
YANG API Reference
pbr
36 min
asternos pbr module description this module describes a yang model for policy based routing configuration yang tree diagram module asternos pbr + rw pbr maps + rw pbr map \[name seq] + rw name string + rw seq uint16 + rw match condition \| + rw src port? uint16 \| + rw src ip? inet\ ip prefix \| + rw dst port? uint16 \| + rw dst ip? inet\ ip prefix \| + rw ip protocol? enumeration + rw set action + rw (set action)? + (nexthop group) \| + rw nexthop group? string + (nexthop) + rw nexthop inet\ ip address no zone rpcs + x show pbr map \| + w input \| | + w name? string \| | + w type? enumeration \| + ro output \| + ro data? \<anydata> + x show pbr interface \| + w input \| | + w interface name? string \| | + w type? enumeration \| + ro output \| + ro data? \<anydata> + x show pbr nexthop groups + w input \| + w name? string \| + w type? enumeration + ro output + ro data? \<anydata> resources resource list path access /pbr maps read write /pbr maps/pbr map read write /pbr maps/pbr map/name read write /pbr maps/pbr map/seq read write /pbr maps/pbr map/match condition read write /pbr maps/pbr map/match condition/src port read write /pbr maps/pbr map/match condition/src ip read write /pbr maps/pbr map/match condition/dst port read write /pbr maps/pbr map/match condition/dst ip read write /pbr maps/pbr map/match condition/ip protocol read write /pbr maps/pbr map/set action read write /pbr maps/pbr map/set action/set action read write /pbr maps/pbr map/set action/set action/nexthop group read write /pbr maps/pbr map/set action/set action/nexthop group/nexthop group read write /pbr maps/pbr map/set action/set action/nexthop read write /pbr maps/pbr map/set action/set action/nexthop/nexthop read write detailed nodes /pbr maps path /pbr maps node type container description no description available access read write /pbr maps/pbr map path /pbr maps/pbr map node type list description no description available access read write /pbr maps/pbr map/name path /pbr maps/pbr map/name node type leaf description name of pbr map access read write data type /pbr maps/pbr map/seq path /pbr maps/pbr map/seq node type leaf description sequence of pbr map entry access read write data type constraints valid range 1 to 700 /pbr maps/pbr map/match condition path /pbr maps/pbr map/match condition node type container description pbr map match conditions access read write /pbr maps/pbr map/match condition/src port path /pbr maps/pbr map/match condition/src port node type leaf description choose the source port to use access read write data type constraints valid range 1 to 65535 /pbr maps/pbr map/match condition/src ip path /pbr maps/pbr map/match condition/src ip node type leaf description choose the src ip or ipv6 prefix to use access read write data type constraints multiple constraints the ipv6 prefix type represents an ipv6 prefix the prefix length is given by the number following the slash character and must be less than or equal to 128 a prefix length value of n corresponds to an ip address mask that has n contiguous 1 bits from the most significant bit (msb) and all other bits set to 0 the canonical format of an ipv6 prefix has all bits of the ipv6 address set to zero that are not part of the ipv6 prefix furthermore, the ipv6 address is represented as defined in section 4 of rfc 5952 the definition of ipv6 prefix does not require that bits, which are not part of the prefix, are set to zero however, implementations have to return values in canonical format, which requires non prefix bits to be set to zero this means that 2001\ db8 1/64 must be accepted as a valid value but it will be converted into the canonical format 2001\ db8 /64 the ipv4 prefix type represents an ipv4 prefix the prefix length is given by the number following the slash character and must be less than or equal to 32 a prefix length value of n corresponds to an ip address mask that has n contiguous 1 bits from the most significant bit (msb) and all other bits set to 0 the canonical format of an ipv4 prefix has all bits of the ipv4 address set to zero that are not part of the ipv4 prefix the definition of ipv4 prefix does not require that bits, which are not part of the prefix, are set to zero however, implementations have to return values in canonical format, which requires non prefix bits to be set to zero this means that 192 0 2 1/24 must be accepted as a valid value but it will be converted into the canonical format 192 0 2 0/24 /pbr maps/pbr map/match condition/dst port path /pbr maps/pbr map/match condition/dst port node type leaf description choose the destination port to use access read write data type constraints valid range 1 to 65535 /pbr maps/pbr map/match condition/dst ip path /pbr maps/pbr map/match condition/dst ip node type leaf description choose the destination ip or ipv6 prefix to use access read write data type constraints multiple constraints the ipv6 prefix type represents an ipv6 prefix the prefix length is given by the number following the slash character and must be less than or equal to 128 a prefix length value of n corresponds to an ip address mask that has n contiguous 1 bits from the most significant bit (msb) and all other bits set to 0 the canonical format of an ipv6 prefix has all bits of the ipv6 address set to zero that are not part of the ipv6 prefix furthermore, the ipv6 address is represented as defined in section 4 of rfc 5952 the definition of ipv6 prefix does not require that bits, which are not part of the prefix, are set to zero however, implementations have to return values in canonical format, which requires non prefix bits to be set to zero this means that 2001\ db8 1/64 must be accepted as a valid value but it will be converted into the canonical format 2001\ db8 /64 the ipv4 prefix type represents an ipv4 prefix the prefix length is given by the number following the slash character and must be less than or equal to 32 a prefix length value of n corresponds to an ip address mask that has n contiguous 1 bits from the most significant bit (msb) and all other bits set to 0 the canonical format of an ipv4 prefix has all bits of the ipv4 address set to zero that are not part of the ipv4 prefix the definition of ipv4 prefix does not require that bits, which are not part of the prefix, are set to zero however, implementations have to return values in canonical format, which requires non prefix bits to be set to zero this means that 192 0 2 1/24 must be accepted as a valid value but it will be converted into the canonical format 192 0 2 0/24 /pbr maps/pbr map/match condition/ip protocol path /pbr maps/pbr map/match condition/ip protocol node type leaf description choose an ip protocol access read write data type constraints enumeration with options udp tcp /pbr maps/pbr map/set action path /pbr maps/pbr map/set action node type container description no description available access read write /pbr maps/pbr map/set action/set action path /pbr maps/pbr map/set action/set action node type choice description pbr map set actions access read write /pbr maps/pbr map/set action/set action/nexthop group path /pbr maps/pbr map/set action/set action/nexthop group node type choice case description no description available access read write /pbr maps/pbr map/set action/set action/nexthop group/nexthop group path /pbr maps/pbr map/set action/set action/nexthop group/nexthop group node type leaf description set nexthop group to use access read write data type /pbr maps/pbr map/set action/set action/nexthop path /pbr maps/pbr map/set action/set action/nexthop node type choice case description no description available access read write /pbr maps/pbr map/set action/set action/nexthop/nexthop path /pbr maps/pbr map/set action/set action/nexthop/nexthop node type leaf list description choose the nexthop ip or ipv6 without zone to use access read write data type constraints multiple constraints an ipv6 address without a zone index this type, derived from the type ipv6 address, may be used in situations where the zone is known from the context and no zone index is needed an ipv4 address without a zone index this type, derived from the type ipv4 address, may be used in situations where the zone is known from the context and no zone index is needed rpcs show pbr map path access /show pbr map/input read write /show pbr map/input/name read write /show pbr map/input/type read write /show pbr map/output read write /show pbr map/output/data read write /show pbr map/input path /show pbr map/input node type container description no description available access read write constraints has local type /show pbr map/input/name path /show pbr map/input/name node type leaf description pbr map name access read write data type /show pbr map/input/type path /show pbr map/input/type node type leaf description display data in json or detail format access read write data type constraints enumeration with options json /show pbr map/output path /show pbr map/output node type container description no description available access read write /show pbr map/output/data path /show pbr map/output/data node type anydata description no description available access read write show pbr interface path access /show pbr interface/input read write /show pbr interface/input/interface name read write /show pbr interface/input/type read write /show pbr interface/output read write /show pbr interface/output/data read write /show pbr interface/input path /show pbr interface/input node type container description no description available access read write constraints has local type /show pbr interface/input/interface name path /show pbr interface/input/interface name node type leaf description interface name of ethernet or link aggregation access read write data type /show pbr interface/input/type path /show pbr interface/input/type node type leaf description display data in json or detail format access read write data type constraints enumeration with options json /show pbr interface/output path /show pbr interface/output node type container description no description available access read write /show pbr interface/output/data path /show pbr interface/output/data node type anydata description no description available access read write show pbr nexthop groups path access /show pbr nexthop groups/input read write /show pbr nexthop groups/input/name read write /show pbr nexthop groups/input/type read write /show pbr nexthop groups/output read write /show pbr nexthop groups/output/data read write /show pbr nexthop groups/input path /show pbr nexthop groups/input node type container description no description available access read write constraints has local type /show pbr nexthop groups/input/name path /show pbr nexthop groups/input/name node type leaf description nexthop groups name access read write data type /show pbr nexthop groups/input/type path /show pbr nexthop groups/input/type node type leaf description display data in json or detail format access read write data type constraints enumeration with options json /show pbr nexthop groups/output path /show pbr nexthop groups/output node type container description no description available access read write /show pbr nexthop groups/output/data path /show pbr nexthop groups/output/data node type anydata description no description available access read write
