Skip to content

Commit

Permalink
multus issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vireshnavalli committed May 26, 2023
1 parent d9ee966 commit bc2ee44
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 5 deletions.
52 changes: 52 additions & 0 deletions free5gc-operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,58 @@ rules:
- get
- list
- watch
- apiGroups:
- workload.nephio.org
resources:
- AMFdeployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- workload.nephio.org
resources:
- AMFdeployments/finalizers
verbs:
- update
- apiGroups:
- workload.nephio.org
resources:
- AMFdeployments/status
verbs:
- get
- patch
- update
- apiGroups:
- workload.nephio.org
resources:
- amfdeployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- workload.nephio.org
resources:
- amfdeployments/finalizers
verbs:
- update
- apiGroups:
- workload.nephio.org
resources:
- amfdeployments/status
verbs:
- get
- patch
- update
- apiGroups:
- workload.nephio.org
resources:
Expand Down
9 changes: 5 additions & 4 deletions free5gc-operator/controllers/amfdeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func constructAMFNadName(templateName string, suffix string) string {
func getAMFNad(templateName string, spec *workloadv1alpha1.AMFDeploymentSpec) string {
var ret string

n2CfgSlice := getIntConfigSlice(spec.Interfaces, "N2")
n2CfgSlice := getIntConfigSlice(spec.Interfaces, "n2")
// n11CfgSlice := getIntConfigSlice(spec.Interfaces, "N11")
// n4CfgSlice := getIntConfigSlice(spec.Interfaces, "N4")
// n9CfgSlice := getIntConfigSlice(spec.Interfaces, "N9")
Expand Down Expand Up @@ -261,9 +261,10 @@ func free5gcAMFDeployment(log logr.Logger, amfDeploy *workloadv1alpha1.AMFDeploy
ContainerPort: 8805,
},
},
// Command: []string{
// "/free5gc/config//wrapper.sh",
// },

Command: []string{"./amf"},
Args: []string{"-c", "../config/amfcfg.yaml"},

VolumeMounts: []apiv1.VolumeMount{
{
MountPath: "/free5gc/config/",
Expand Down
2 changes: 1 addition & 1 deletion free5gc-operator/test/nad/amf-n2-nad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
{
"type": "macvlan",
"capabilities": { "ips": true },
"master": "ens5",
"master": "eth0",
"mode": "bridge",
"ipam": {
"type": "static",
Expand Down

0 comments on commit bc2ee44

Please sign in to comment.