blob: 6689a0b62a5c2133b51f5d23e433dd3843e1e350 [file] [log] [blame]
# SPDX-FileCopyrightText: 2022-present Open Networking Foundation <info@opennetworking.org>
#
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
package aether_2_0_0
echo[config] {
config := input
}
allowed[config] {
enterprise := enterprise_rule
config := {
"connectivity_services": object.get(input, "connectivity_services", {}),
"enterprises": {
"enterprise": [
enterprise
]
}
}
}
enterprise_rule[enterprise] {
enterprise := input.enterprises.enterprise[_]
["AetherROCAdmin", enterprise.ent_id][_] == input.groups[i]
}
can_update_enterprise = true {
update_enterprise := input.updates.enterprises.enterprise[_]
["AetherROCAdmin", update_enterprise.ent_id][_] == input.groups[i]
}