aboutsummaryrefslogtreecommitdiffstats
path: root/docs/opa/resources/cell_consistency_topology.rego
diff options
context:
space:
mode:
Diffstat (limited to 'docs/opa/resources/cell_consistency_topology.rego')
-rw-r--r--docs/opa/resources/cell_consistency_topology.rego6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/opa/resources/cell_consistency_topology.rego b/docs/opa/resources/cell_consistency_topology.rego
new file mode 100644
index 00000000..e8f22f7e
--- /dev/null
+++ b/docs/opa/resources/cell_consistency_topology.rego
@@ -0,0 +1,6 @@
+package cell.consistency.topology
+import rego.v1
+# Rule to check cell consistency
+check_cell_consistency if {
+ input.cell != data.node.cell.consistency.allowedCellId
+} \ No newline at end of file