[VOL-3469] Enabling bbsim rest api service
Change-Id: I08fff1087733d8b5d00a38222af2725f53175437
diff --git a/bbsim/templates/deployment.yaml b/bbsim/templates/deployment.yaml
index 6c02543..9659dea 100644
--- a/bbsim/templates/deployment.yaml
+++ b/bbsim/templates/deployment.yaml
@@ -76,6 +76,9 @@
{{ if .Values.dhcpRetry -}}
"-dhcpRetry",
{{ end -}}
+ {{ if .Values.bbsim_rest_port -}}
+ "-rest_api_address", ":{{ .Values.bbsim_rest_port }}"
+ {{ end -}}
]
ports:
- name: "bbsim-{{ .Values.olt_id }}"
@@ -87,6 +90,9 @@
- name: "bbsim-{{ .Values.olt_id }}-sadis"
containerPort: {{ .Values.bbsim_sadis_port }}
protocol: TCP
+ - name: "bbsim-{{ .Values.olt_id }}-rest"
+ containerPort: {{ .Values.bbsim_rest_port }}
+ protocol: TCP
env:
- name: POD_IP
valueFrom:
diff --git a/bbsim/templates/service.yaml b/bbsim/templates/service.yaml
index 46fc28a..b643065 100644
--- a/bbsim/templates/service.yaml
+++ b/bbsim/templates/service.yaml
@@ -36,6 +36,9 @@
- name: "bbsim-{{ .Values.olt_id }}-sadis"
port: {{ .Values.bbsim_sadis_port }}
protocol: TCP
+ - name: "bbsim-{{ .Values.olt_id }}-rest"
+ port: {{ .Values.bbsim_rest_port }}
+ protocol: TCP
selector:
app: "bbsim"
name: {{ template "bbsim.name" . }}