X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=VNFs%2FDPPD-PROX%2Fhelper-scripts%2Frapid%2Frapid_k8s_deployment.py;h=2d88cd9613d993b5b6a450a78df3d9f8806e28b7;hb=849357bb9ca1d27993c9e96b93156ec69b3ac3a9;hp=822ead513bcbc6daab0a0e7bcedfdd48e119eb09;hpb=919872a6ee1ddfd9105879175a1649c1444be8c3;p=samplevnf.git diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_k8s_deployment.py b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_k8s_deployment.py index 822ead51..2d88cd96 100644 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_k8s_deployment.py +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_k8s_deployment.py @@ -115,9 +115,18 @@ class K8sDeployment: else: pod_dp_ip = None + # Search for POD dataplane subnet + if self._create_config.has_option("POD%d" % i, + "dp_subnet"): + pod_dp_subnet = self._create_config.get( + "POD%d" % i, "dp_subnet") + else: + pod_dp_subnet = "24" + pod = Pod(pod_name) pod.set_nodeselector(pod_nodeselector_hostname) pod.set_dp_ip(pod_dp_ip) + pod.set_dp_subnet(pod_dp_subnet) pod.set_id(i) # Add POD to the list of PODs which need to be created @@ -181,7 +190,8 @@ class K8sDeployment: self._runtime_config.set("M%d" % pod.get_id(), "dp_pci_dev", pod.get_dp_pci_dev()) self._runtime_config.set("M%d" % pod.get_id(), - "dp_ip1", pod.get_dp_ip()) + "dp_ip1", pod.get_dp_ip() + "/" + + pod.get_dp_subnet()) # Section [Varia] self._runtime_config.add_section("Varia")