<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Can you please reply to the below question ?<o:p></o:p></p>
<p class="MsoNormal">Is it possible to create multiple device pools based on the selectors like below using starlingx CLI,<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">controller-1:/home/sysadmin# cat /etc/pcidp/config.json<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceList": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceName": "cuplanepool",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "selectors": {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "vendors": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "15b3"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "isRdma": true,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "drivers": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "mlx5_core"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "devices": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "1014"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "pfNames": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "enp101s0f0#0-4"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> },<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceName": "flupool",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "selectors": {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "vendors": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "15b3"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "isRdma": true,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "drivers": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "mlx5_core"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "devices": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "1014"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "pfNames": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "enp101s0f0#5-9"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> },<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceName": "o1pool",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "selectors": {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "vendors": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "15b3"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "isRdma": true,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "drivers": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "mlx5_core"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "devices": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "1014"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "pfNames": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "enp101s0f0#10-15"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<br>
Sriram<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Dharwadkar, Sriram <br>
<b>Sent:</b> Thursday, January 7, 2021 8:50 PM<br>
<b>To:</b> starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> [Distributed StarlingX 4.0] Multiple SRIOV pools<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We have installed Starlingx – Aug 5<sup>th</sup> release build for central cloud and edge cloud.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">controller-1:~$ cat /etc/build.info<o:p></o:p></p>
<p class="MsoNormal">###<o:p></o:p></p>
<p class="MsoNormal">### StarlingX<o:p></o:p></p>
<p class="MsoNormal">### Release 20.06<o:p></o:p></p>
<p class="MsoNormal">###<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">OS="centos"<o:p></o:p></p>
<p class="MsoNormal">SW_VERSION="20.06"<o:p></o:p></p>
<p class="MsoNormal">BUILD_TARGET="Host Installer"<o:p></o:p></p>
<p class="MsoNormal">BUILD_TYPE="Formal"<o:p></o:p></p>
<p class="MsoNormal">BUILD_ID="r/stx.4.0"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">JOB="STX_4.0_build_layer_flock"<o:p></o:p></p>
<p class="MsoNormal">BUILD_BY="<a href="mailto:starlingx.build@cengn.ca">starlingx.build@cengn.ca</a>"<o:p></o:p></p>
<p class="MsoNormal">BUILD_NUMBER="22"<o:p></o:p></p>
<p class="MsoNormal">BUILD_HOST="starlingx_mirror"<o:p></o:p></p>
<p class="MsoNormal">BUILD_DATE="2020-08-05 12:25:52 +0000"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">FLOCK_OS="centos"<o:p></o:p></p>
<p class="MsoNormal">FLOCK_JOB="STX_4.0_build_layer_flock"<o:p></o:p></p>
<p class="MsoNormal">FLOCK_BUILD_BY="<a href="mailto:starlingx.build@cengn.ca">starlingx.build@cengn.ca</a>"<o:p></o:p></p>
<p class="MsoNormal">FLOCK_BUILD_NUMBER="22"<o:p></o:p></p>
<p class="MsoNormal">FLOCK_BUILD_HOST="starlingx_mirror"<o:p></o:p></p>
<p class="MsoNormal">FLOCK_BUILD_DATE="2020-08-05 12:25:52 +0000" <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hardware on which edge cloud is installed has Mellanox nic which is SRIOV capable.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Commands that I m using to enable SRIOV functionality are,<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">DATA0IF=enp101s0f0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">export NODE=controller-1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">PHYSNET0='physnet0'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">SPL=/tmp/tmp-system-port-list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">SPIL=/tmp/tmp-system-host-if-list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">system host-port-list ${NODE} --nowrap > ${SPL}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">cat /tmp/tmp-system-port-list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">system host-if-list -a ${NODE} --nowrap > ${SPIL}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">cat /tmp/tmp-system-host-if-list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">DATA0PCIADDR=$(cat $SPL | grep $DATA0IF |awk '{print $8}')<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">DATA0PORTUUID=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $2}')<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">DATA0PORTNAME=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $4}')<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">DATA0IFUUID=$(cat $SPIL | awk -v DATA0PORTNAME=$DATA0PORTNAME '($12 ~ DATA0PORTNAME) {print $2}')<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">echo $DATA0IFUUID<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">system datanetwork-add ${PHYSNET0} vlan<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">system host-if-modify $NODE -n sriov0 -c pci-sriov -N 16 --vf-driver=netdevice $DATA0IFUUID<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">system interface-datanetwork-assign ${NODE} ${DATA0IFUUID} ${PHYSNET0}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"><o:p> </o:p></span></p>
<p class="MsoNormal">With these commands I m able to see that /etc/pcidp/config.json file is getting updated with the below contents<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">controller-1:/home/sysadmin# cat /etc/pcidp/config.json<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceList": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceName": "pci_sriov_net_physnet0",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "selectors": {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "vendors": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "15b3"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "isRdma": true,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "drivers": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "mlx5_core"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "devices": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "1014"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "pfNames": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "enp101s0f0"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"><o:p> </o:p></span></p>
<p class="MsoNormal">One device pool is created with 16 vfs. <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">controller-1:/home/sysadmin# kubectl get node controller-1 -o json | jq '.status.allocatable'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "cpu": "22",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "ephemeral-storage": "9391196145",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "hugepages-1Gi": "20Gi",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "hugepages-2Mi": "0",<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "intel.com/pci_sriov_net_physnet0": "16",<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "memory": "70207428Ki",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "pods": "110"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"><o:p> </o:p></span></p>
<p class="MsoNormal">Our usecase requires us to create multiple device pools like below.
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">controller-1:/home/sysadmin# cat /etc/pcidp/config.json<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceList": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceName": "cuplanepool",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "selectors": {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "vendors": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "15b3"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "isRdma": true,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "drivers": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "mlx5_core"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "devices": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "1014"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "pfNames": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "enp101s0f0#0-4"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> },<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceName": "flupool",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "selectors": {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "vendors": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "15b3"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "isRdma": true,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "drivers": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "mlx5_core"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "devices": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "1014"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "pfNames": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "enp101s0f0#5-9"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> },<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "resourceName": "o1pool",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "selectors": {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "vendors": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "15b3"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "isRdma": true,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "drivers": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "mlx5_core"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "devices": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "1014"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "pfNames": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> "enp101s0f0#10-15"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"> ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"><o:p> </o:p></span></p>
<p class="MsoNormal">Please let me know if it is possible to create multiple device pools from the same nic (with the filters as above) using StarlingX system CLI.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Sriram<span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#172B4D;background:#F4F5F7"><o:p> </o:p></span></p>
</div>
</body>
</html>