Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit e74b3ca

Browse files
hyunsunkrsna1729
authored andcommitted
Add support of CNI version 0.3.1 to vfioveth
Tested with K8S v1.18.6 and the latest multus stable image.
1 parent 55b2aa2 commit e74b3ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • clr-k8s-examples/9-multi-network/cni

clr-k8s-examples/9-multi-network/cni/vfioveth

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ delete_pair_ns() {
5050
case $CNI_COMMAND in
5151
ADD)
5252
res=$(ipam)
53-
ip=$(echo $res | jq -r '.ip4.ip')
53+
ip=$(echo $res | jq -r '.ips[0].address')
5454
add_pair_ns $ip
55-
echo '{"cniVersion":"0.2.0"}' | jq -c --arg ip $ip '.ip4.ip = $ip' >&3
55+
echo '{"cniVersion":"0.3.1"}' | jq -c --arg ip $ip '.ips[0].address = $ip' >&3
5656
;;
5757
DEL)
5858
set +o errexit

0 commit comments

Comments
 (0)