ovs-dpdkctl.sh function list_dpdk_nics only grabs the first nic
Adding translate, new line in for loop /etc/default/ovs-dpdkctl.conf
function list_dpdk_nics { for nic in $(crudini --get $CONFIG_FILE ovs port_mappings | tr ',' '\n' | cut -d : -f 1); do echo $ni done }
[root@ab11-07-wcp ~]# for nic in $(crudini --get /etc/default/ovs-dpdkctl.conf ovs port_mappings | cut -d: -f 1); do echo $nic; done ens786f0
[root@ab11-07-wcp ~]# for nic in $(crudini --get /etc/default/ovs-dpdkctl.conf ovs port_mappings | tr ',' '\n' | cut -d: -f 1); do echo $nic; done ens786f0 ens786f1
ovs-dpdkctl.sh function list_dpdk_nics only grabs the first nic
Adding translate, new line in for loop /etc/default/ ovs-dpdkctl. conf
function list_dpdk_nics {
for nic in $(crudini --get $CONFIG_FILE ovs port_mappings | tr ',' '\n' | cut -d : -f 1); do
echo $ni
done
}
[root@ab11-07-wcp ~]# for nic in $(crudini --get /etc/default/ ovs-dpdkctl. conf ovs port_mappings | cut -d: -f 1); do echo $nic; done
ens786f0
[root@ab11-07-wcp ~]# for nic in $(crudini --get /etc/default/ ovs-dpdkctl. conf ovs port_mappings | tr ',' '\n' | cut -d: -f 1); do echo $nic; done
ens786f0
ens786f1