diff options
| author | zhou-run <166502045+zhou-run@users.noreply.github.com> | 2024-04-18 20:55:52 +0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-18 20:55:52 +0800 | 
| commit | 6fcf8f2a2e5fb4725f60faa0191785fec8b8d488 (patch) | |
| tree | 05211edbbccdf2a3d6249c3e8da9fa8153cd5da9 /yang | |
| parent | 48805d617b29a597389d9be9e1993be3bced6ad0 (diff) | |
isisd: When the ISIS instance does not exist, the default metric is not wide.
When the ISIS instance does not exist, this check causes the default value of the ISIS instance's metric to become narrow. 
The following two scenarios present issues: 
1) When the ISIS metric configuration under the interface exceeds 63, we are unable to delete the ISIS instance.
2) When the ISIS instance is not created, we are unable to modify an ISIS metric that exceeds 63.
Signed-off-by: zhou-run <166502045+zhou-run@users.noreply.github.com>
Diffstat (limited to 'yang')
| -rw-r--r-- | yang/frr-isisd.yang | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/yang/frr-isisd.yang b/yang/frr-isisd.yang index 5d7c739c05..d1a08fa976 100644 --- a/yang/frr-isisd.yang +++ b/yang/frr-isisd.yang @@ -685,7 +685,7 @@ module frr-isisd {          type uint32 {            range "0..16777215";          } -        must ". < 64 or /frr-isisd:isis/instance[area-tag = current()/../../area-tag]/metric-style = 'wide'"; +        must ". < 64 or /frr-isisd:isis/instance[area-tag = current()/../../area-tag]/metric-style = 'wide' or not(/frr-isisd:isis/instance[area-tag = current()/../../area-tag]/metric-style)";          default "10";          description            "Default level-1 metric for this IS-IS circuit."; @@ -695,7 +695,7 @@ module frr-isisd {          type uint32 {            range "0..16777215";          } -        must ". < 64 or /frr-isisd:isis/instance[area-tag = current()/../../area-tag]/metric-style = 'wide'"; +        must ". < 64 or /frr-isisd:isis/instance[area-tag = current()/../../area-tag]/metric-style = 'wide' or not(/frr-isisd:isis/instance[area-tag = current()/../../area-tag]/metric-style)";          default "10";          description            "Default level-2 metric for this IS-IS circuit.";  | 
