}
+install_multus_sriov_calico(){
+
+ sed -i "s@10.244.0.0/16@${POD_NETWORK_CIDR}@" \
+ "${SCRIPTS_DIR}/cni/multus/multus-sriov-calico/calico-daemonset.yaml"
+ # Install Multus Calico+SRIOV by yaml files
+ # shellcheck source=/dev/null
+ source ${SCRIPTS_DIR}/cni/multus/multus-sriov-calico/install.sh
+
+}
+
install_danm(){
${SCRIPTS_DIR}/cni/danm/danm_install.sh
install_flannel
}
+ install_cilium(){
+ ${SCRIPTS_DIR}/cni/cilium/cilium_install.sh
+
+ # Deploying cilium CNI
+ kubectl create -f ${SCRIPTS_DIR}/cni/cilium/quick-install.yaml
+ }
case ${CNI_TYPE} in
'calico')
echo "Install calico ..."
echo "Install Flannel with SRIOV CNI by Multus-CNI ..."
install_multus_sriov_flannel
;;
+ 'multus-calico-sriov')
+ echo "Install Calico with SRIOV CNI by Multus-CNI ..."
+ install_multus_sriov_calico
+ ;;
'danm')
echo "Install danm ..."
install_danm
;;
+ 'cilium')
+ echo "Install cilium ..."
+ install_cilium
+ ;;
*)
echo "${CNI_TYPE} is not supported"
exit 1