NETCONF Configuration Guide
YANG API Reference
pbr
16 min
this module describes a yang model for policy based routing configuration yang tree diagram 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 resources resource list 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 detailed nodes /pbr maps /pbr maps path /pbr maps node type container access read write /pbr maps/pbr map /pbr maps/pbr map path /pbr maps/pbr map node type list access read write /pbr maps/pbr map/name /pbr maps/pbr map/name path /pbr maps/pbr map/name node type leaf description name of pbr map access read write data type \<yang type string> /pbr maps/pbr map/seq /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 \<yang type uint16> constraints valid range 1 to 700 /pbr maps/pbr map/match condition /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 /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 \<yang type uint16> constraints valid range 1 to 65535 /pbr maps/pbr map/match condition/src ip /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 \<yang type ip prefix> 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 /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 \<yang type uint16> constraints valid range 1 to 65535 /pbr maps/pbr map/match condition/dst ip /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 \<yang type ip prefix> 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 /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 \<yang type enumeration> constraints enumeration with options udp tcp /pbr maps/pbr map/set action /pbr maps/pbr map/set action path /pbr maps/pbr map/set action node type container access read write /pbr maps/pbr map/set action/set action /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 /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 access read write /pbr maps/pbr map/set action/set action/nexthop group/nexthop group /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 \<yang type string> /pbr maps/pbr map/set action/set action/nexthop /pbr maps/pbr map/set action/set action/nexthop path /pbr maps/pbr map/set action/set action/nexthop node type choice case access read write /pbr maps/pbr map/set action/set action/nexthop/nexthop /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 \<yang type ip address no zone> 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
