Comment 27 for bug 1644588

Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

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/