Skip to content

Commit

Permalink
Merge pull request #169 from Jaganathancse/neutron_policies_tempest_c…
Browse files Browse the repository at this point in the history
…hanges

Neutron API policies integration tempest changes
  • Loading branch information
fultonj authored Apr 11, 2024
2 parents 07a3bc5 + 03db000 commit 1aee256
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/va/nfv/ovs-dpdk-sriov/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ data:
numa_nodes = 0 # CHANGEME
[neutron_tunnel] # CHANGEME
numa_nodes = 0 # CHANGEME
[oslo_policy]
policy_file=/etc/neutron/policy.d/policy.yaml
ovn:
ovnController:
nicMappings:
Expand All @@ -58,3 +60,18 @@ data:
template:
ceilometer:
enabled: true
extraMounts:
- name: v1
region: r1
extraVol:
- propagation:
- NeutronAPI
extraVolType: Policy
volumes:
- name: neutron-policy
configMap:
name: neutron-policy
mounts:
- name: neutron-policy
mountPath: /etc/neutron/policy.d
readOnly: true
14 changes: 14 additions & 0 deletions va/nfv/ovs-dpdk-sriov/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ components:
- ../../../lib/networking
- ../../../lib/control-plane

resources:
- policy.yaml

replacements:
# Neutron control plane OvS DPDK & SRIOV customization
- source:
Expand Down Expand Up @@ -101,3 +104,14 @@ replacements:
- spec.telemetry.template.ceilometer.enabled
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.extraMounts
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.extraMounts
options:
create: true
18 changes: 18 additions & 0 deletions va/nfv/ovs-dpdk-sriov/policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: neutron-policy
data:
"create_port:binding:profile": "rule:admin_or_network_owner"
"get_port:binding:profile": "rule:admin_or_network_owner"
"update_port:binding:profile": "rule:admin_or_network_owner"
"create_network:provider:network_type": "rule:regular_user"
"get_network:provider:network_type": "rule:regular_user"
"update_network:provider:network_type": "rule:regular_user"
"create_network:provider:physical_network": "rule:regular_user"
"get_network:provider:physical_network": "rule:regular_user"
"update_network:provider:physical_network": "rule:regular_user"
"create_network:provider:segmentation_id": "rule:regular_user"
"get_network:provider:segmentation_id": "rule:regular_user"
"update_network:provider:segmentation_id": "rule:regular_user"

0 comments on commit 1aee256

Please sign in to comment.