Skip to content

Commit

Permalink
Fix issue when creating SRIOV/vDPA devices
Browse files Browse the repository at this point in the history
Problem: if you apply a policy with vdpa devices, no VFs are created
Solution: make sure all the references to the file sriov_config.json
are correct, since its location has changed

k8snetworkplumbingwg#471

Signed-off-by: Leonardo Milleri <lmilleri@redhat.com>
  • Loading branch information
lmilleri committed Jul 17, 2023
1 parent 6a6f8d8 commit db0eb0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ contents:
inline: |
#!/bin/bash
set -eux
input="/etc/sriov_config.json"
input="/etc/sriov-operator/sriov_config.json"
minId=-1
maxId=-1
Expand All @@ -26,7 +26,7 @@ contents:
}
if [ ! -f $input ]; then
echo "File /etc/sriov_config.json not exist."
echo "File /etc/sriov-operator/sriov_config.json not exist."
exit
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ contents:
inline: |
#!/bin/bash
set -eux
input="/etc/sriov_config.json"
input="/etc/sriov-operator/sriov_config.json"
UDEV_RULE_FILE='/etc/udev/rules.d/10-persistent-net.rules'
if [ ! -f $input ]; then
echo "File /etc/sriov_config.json not exist."
echo "File /etc/sriov-operator/sriov_config.json not exist."
exit
fi
Expand Down

0 comments on commit db0eb0e

Please sign in to comment.