diff options
author | Hiroki Shirokura <hiroki.shirokura@linecorp.com> | 2021-12-12 12:56:44 +0100 |
---|---|---|
committer | Louis Scalbert <louis.scalbert@6wind.com> | 2023-04-18 10:11:53 +0200 |
commit | cc4926c1284ea7950c12e9fab89c7276e8370fb8 (patch) | |
tree | 3db14747edb78ed8c195a10607b5932550e5227c /yang | |
parent | isisd: add TLV_SIZE_MISMATCH for tlvs length mismatch (diff) | |
download | frr-cc4926c1284ea7950c12e9fab89c7276e8370fb8.tar.xz frr-cc4926c1284ea7950c12e9fab89c7276e8370fb8.zip |
isisd,yang: add algorithm-prefix-sid configuration tree
Add the ability to configure a Segment-Routing prefix SID for a given
algorithm. For example:
> segment-routing prefix 10.10.10.10/32 algorithm 128 index 100
Signed-off-by: Hiroki Shirokura <hiroki.shirokura@linecorp.com>
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'yang')
-rw-r--r-- | yang/frr-isisd.yang | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/yang/frr-isisd.yang b/yang/frr-isisd.yang index de925b482..264d5fd3c 100644 --- a/yang/frr-isisd.yang +++ b/yang/frr-isisd.yang @@ -1751,6 +1751,87 @@ module frr-isisd { } } } + container algorithm-prefix-sids { + description + "Algorithm SID Table"; + list algorithm-prefix-sid { + key "prefix algo"; + description + "Assign prefix SID for algorithm to an + interface, ISISPHPFlag will be rejected + if set to disable, ISISEXPLICITNULLFlag + will override the value of ISISPHPFlag"; + leaf algo { + type uint32 { + range "128..255"; + } + description + "Algorithm"; + } + leaf prefix { + type inet:ip-prefix; + mandatory true; + description + "Connected prefix sid."; + } + leaf sid-value-type { + type enumeration { + enum "index" { + value 0; + description + "The value will be interpreted as an index."; + } + enum "absolute" { + value 1; + description + "The value will become interpreted as an absolute + value."; + } + } + default "index"; + description + "This leaf defines how value must be interpreted."; + } + leaf sid-value { + type uint32 { + range "0..1048575"; + } + mandatory true; + description + "Value associated with prefix. The value must be + interpreted in the context of sid-value-type."; + } + leaf last-hop-behavior { + type enumeration { + enum "explicit-null" { + value 0; + description + "Use explicit-null for the SID."; + } + enum "no-php" { + value 1; + description + "Do not use Penultimate Hop Popping (PHP) + for the SID."; + } + enum "php" { + value 2; + description + "Use PHP for the SID."; + } + } + default "php"; + description + "Configure last hop behavior."; + } + leaf n-flag-clear { + type boolean; + default "false"; + description + "Not a node SID"; + } + } + } } container mpls { |