diff options
author | 2025-03-27 19:29:29 +0530 | |
---|---|---|
committer | 2025-03-27 22:31:00 +0530 | |
commit | 1776ff2c780dfabbaa1c4a861b330d3dbe470fb6 (patch) | |
tree | 8948145f7afdcf17e176b109c726185e39b99868 /docs/opa/resources/cell_consistency.rego | |
parent | 0031d096390953ef0ae8e6067e42a724f816be82 (diff) |
Issue-ID: POLICY-5329
Change-Id: I38d158446084f2822cefb6499b5b710f47e27e84
Signed-off-by: gururajarao79 <gb00566633@techmahindra.com>
Diffstat (limited to 'docs/opa/resources/cell_consistency.rego')
-rw-r--r-- | docs/opa/resources/cell_consistency.rego | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/opa/resources/cell_consistency.rego b/docs/opa/resources/cell_consistency.rego new file mode 100644 index 00000000..c5f3dd25 --- /dev/null +++ b/docs/opa/resources/cell_consistency.rego @@ -0,0 +1,14 @@ +package cell.consistency +import rego.v1 +import data.cell.consistency.topology +default allow = false +# Rule to allow if PCI is within range 1-3000 +allow_if_pci_in_range if { + input.PCI >= data.node.cell.consistency.minPCI + input.PCI <= data.node.cell.consistency.maxPCI +} +# Main rule to determine the final decision +allow if{ + topology.check_cell_consistency + allow_if_pci_in_range +}
\ No newline at end of file |