-
Notifications
You must be signed in to change notification settings - Fork 19
ifcfg: remove dpdk member interfaces during purge #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ifcfg: remove dpdk member interfaces during purge #322
Conversation
9f6d300 to
2c062c2
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/00db8483d0d34f4ea1ec972aad28a04d ✔️ tox-linters SUCCESS in 3m 20s |
os_net_config/impl_ifcfg.py
Outdated
| self.del_device["dpdk_port"].extend(pci_address) | ||
|
|
||
| for dpdk_port in ovs_dpdk_bond.members: | ||
| ifname = dpdk_port.members[0].name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to check if members is not None here before accessing (however that would be wrong config)
2c062c2 to
12dd074
Compare
| pci_address = self._get_dpdk_pci_addresses(ifcfg_dpdk) | ||
| self.del_device["dpdk_port"].extend(pci_address) | ||
|
|
||
| ifname = ovs_dpdk_port.members[0].name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add check "if common.is_mellanox_interface()" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is not required. If the interface exists, it will be removed, if not it will proceed. Let us check in non mellanox cards as well
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/4c8a7888d3334c62b4ab28e7c792b7d9 ✔️ tox-linters SUCCESS in 2m 44s |
12dd074 to
5631c58
Compare
In case of Mellanox nics, the DPDK port members also have a ifcfg file and the same needs to be removed during purge provider. The dpdk port members could be one of interface or sriov_vf. Signed-off-by: Karthik Sundaravel <ksundara@redhat.com>
5631c58 to
5f16573
Compare
In case of Mellanox nics, the DPDK port members also have a ifcfg file and the same needs to be removed during purge provider. The dpdk port members could be one of interface or sriov_vf.