{ "network_config": [ { "type": "sriov_pf", "name": "p2p1", "numvfs": 10, "use_dhcp": false, "promisc": true, "ethtool_opts": "speed 1000 duplex full" }, { "type": "sriov_pf", "name": "p2p2", "numvfs": 10, "use_dhcp": false, "promisc": true }, { "type": "sriov_vf", "device": "p2p1", "vfid": 5, "addresses": [ { "ip_netmask": "192.0.2.1/24" } ], "vlan_id": 100, "qos": 2, "min_tx_rate": 10, "max_tx_rate": 100, "spoofcheck": true, "macaddr": "00:78:90:80:cc:30", "trust": true, "state": "auto", "promisc": false }, { "type": "ovs_bridge", "name": "br-vfs", "members": [ { "type": "sriov_vf", "vfid": 1, "trust": true, "device": "p2p1", "promisc": true, "vlan_id": 116, "qos": 3, "min_tx_rate": 0, "max_tx_rate": 0, "spoofcheck": false } ], "use_dhcp": true }, { "type": "ovs_bridge", "name": "br-bond", "use_dhcp": true, "members": [ { "type": "ovs_bond", "name": "bond_vf", "ovs_options": "bond_mode=active-backup", "members": [ { "type": "sriov_vf", "device": "p2p1", "vfid": 2, "vlan_id": 112, "qos": 4, "min_tx_rate": 0, "max_tx_rate": 0, "primary": true, "trust": true, "promisc": true, "spoofcheck": false }, { "type": "sriov_vf", "device": "p2p2", "vfid": 2, "vlan_id": 112, "qos": 4, "min_tx_rate": 0, "max_tx_rate": 0, "trust": true, "promisc": true, "spoofcheck": false } ] } ] }, { "type": "linux_bond", "name": "bond_lnx", "use_dhcp": true, "bonding_options": "mode=active-backup", "members": [ { "type": "sriov_vf", "device": "p2p1", "vfid": 3, "vlan_id": 113, "qos": 5, "min_tx_rate": 0, "max_tx_rate": 0, "spoofcheck": true, "trust": true, "promisc": false, "primary": true, }, { "type": "sriov_vf", "device": "p2p2", "vfid": 3, "vlan_id": 113, "qos": 5, "min_tx_rate": 0, "max_tx_rate": 0, "spoofcheck": true, "trust": true, "promisc": false } ] } ] }