Since sriov-network-device-plugin upgrade to v3.5.1, assigning multiple
datanetworks to the same interface is not possible anymore.
This change restricts the system interface-datanetwork-assign command to
prevent that from happening.
Test Plan:
PASS: assign datanetwork1 to sriov0 interface: ok
PASS: assign datanetwork2 to same sriov0 interface: fails
PASS: create new vf0 interface on top of sriov0: ok
PASS: assign datanetwork1 to vf0: ok
PASS: assign datanetwork2 to vf0: fails
PASS: create new vf1 interface on top of sriov0: ok
PASS: assign datanetwork2 to vf1: ok
PASS: assign datanetwork1 to vf1: fails
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/914833 /opendev. org/starlingx/ config/ commit/ f6158f5b0212487 1c74f23c12228b5 33db7132af
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f6158f5b0212487 1c74f23c12228b5 33db7132af
Author: Caio Bruchert <email address hidden>
Date: Mon Apr 1 16:59:08 2024 -0300
Prevent multiple datanetworks to same interface
Since sriov-network- device- plugin upgrade to v3.5.1, assigning multiple
datanetworks to the same interface is not possible anymore.
This change restricts the system interface- datanetwork- assign command to
prevent that from happening.
Test Plan:
PASS: assign datanetwork1 to sriov0 interface: ok
PASS: assign datanetwork2 to same sriov0 interface: fails
PASS: create new vf0 interface on top of sriov0: ok
PASS: assign datanetwork1 to vf0: ok
PASS: assign datanetwork2 to vf0: fails
PASS: create new vf1 interface on top of sriov0: ok
PASS: assign datanetwork2 to vf1: ok
PASS: assign datanetwork1 to vf1: fails
Closes-Bug: 2059960
Change-Id: If3ab9559491708 9f01475f9595c90 59edeae85f5
Signed-off-by: Caio Bruchert <email address hidden>