As I undestand we use [0] functions for interfaces and bonds. So ether ifaces format is correct:
"attributes": { "offloading": { ... "modes": { ... "value": { "rx-vlan-offload": null,
But for bondings it is: "meta": { "dpdk": { "available": true }, "offloading": { "modes": [ { "state": null, "name": "rx-all", "sub": [] },
So we should check type of iface "type": "ether" or "type": "bond" before iface offloading update.
There is failed swarm test case [1]
[0] get_offloading_modes, update_offloads [1] https://product-ci.infra.mirantis.net/job/9.x.system_test.ubuntu.bonding_ha_one_controller/177/testReport/(root)/offloading_bond_neutron_vlan/offloading_bond_neutron_vlan/
As I undestand we use [0] functions for interfaces and bonds.
So ether ifaces format is correct:
...
But for bondings it is:
"available" : true
"offloadin g": {
"modes" : [
{
"state" : null,
"name" : "rx-all",
"sub" : []
} ,
"meta": {
"dpdk": {
},
So we should check type of iface "type": "ether" or "type": "bond" before iface offloading update.
There is failed swarm test case [1]
[0] get_offloading_ modes, update_offloads /product- ci.infra. mirantis. net/job/ 9.x.system_ test.ubuntu. bonding_ ha_one_ controller/ 177/testReport/ (root)/ offloading_ bond_neutron_ vlan/offloading _bond_neutron_ vlan/
[1] https:/