@@ -39,7 +39,8 @@ def render_dpu_vsp_ds(vsp_ds_manifest: str, ipu_plugin_image: str, outfilename:
39
39
40
40
41
41
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"
43
44
44
45
def __init__ (self ) -> None :
45
46
pass
@@ -53,10 +54,16 @@ def build_push_start(self, acc: host.Host, imgReg: ImageRegistry) -> None:
53
54
local_img = f"{ imgReg .url ()} /intel-vsp-p4:dev"
54
55
lh .run_or_die (f"podman tag { self .P4_IMG } { local_img } " )
55
56
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 )
58
59
self .configure_p4_hugepages (acc )
59
60
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
+
60
67
def configure_p4_hugepages (self , rh : host .Host ) -> None :
61
68
logger .info ("Configuring hugepages for p4 pod" )
62
69
# The p4 container typically sets this up. If we are running the container as a daemonset in microshift, we need to
0 commit comments