Skip to content

Commit f0ec3c8

Browse files
committed
Merge branch 'p4_image_change'
2 parents f5271a3 + 589af84 commit f0ec3c8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

dpuVendor.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def render_dpu_vsp_ds(vsp_ds_manifest: str, ipu_plugin_image: str, outfilename:
3939

4040

4141
class IpuPlugin(VendorPlugin):
42-
P4_IMG = "wsfd-advnetlab217.anl.eng.bos2.dc.redhat.com:5000/intel-ipu-sdk:single-port-aarch64"
42+
P4_URL = "wsfd-advnetlab-amp04.anl.eng.bos2.dc.redhat.com/p4_1.8.tar.gz"
43+
P4_IMG = "wsfd-advnetlab217.anl.eng.bos2.dc.redhat.com:5000/intel-ipu-sdk:p4_without_tar-aarch64"
4344

4445
def __init__(self) -> None:
4546
pass
@@ -53,10 +54,16 @@ def build_push_start(self, acc: host.Host, imgReg: ImageRegistry) -> None:
5354
local_img = f"{imgReg.url()}/intel-vsp-p4:dev"
5455
lh.run_or_die(f"podman tag {self.P4_IMG} {local_img}")
5556
lh.run_or_die(f"podman push {local_img}")
56-
# WA https://issues.redhat.com/browse/IIC-421
57-
acc.run_or_die("mkdir -p /opt/p4/p4-cp-nws/var/run/openvswitch")
57+
58+
self.download_p4_tar(acc)
5859
self.configure_p4_hugepages(acc)
5960

61+
def download_p4_tar(self, rh: host.Host) -> None:
62+
logger.info("Downloading p4.tar.gz")
63+
rh.run_or_die(f"curl -L {self.P4_URL} -o /tmp/p4.tar.gz")
64+
rh.run("rm -rf /opt/p4")
65+
rh.run_or_die("tar -U -C /opt/ -xzf /tmp/p4.tar.gz")
66+
6067
def configure_p4_hugepages(self, rh: host.Host) -> None:
6168
logger.info("Configuring hugepages for p4 pod")
6269
# The p4 container typically sets this up. If we are running the container as a daemonset in microshift, we need to

0 commit comments

Comments
 (0)