github.com/cilium/cilium@v1.16.2/test/vagrant_cleanup.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  K8S_NODES="${K8S_NODES:-2}"
     4  
     5  vagrant destroy -f
     6  
     7  i=1
     8  while [ "$i" -le "$K8S_NODES" ]; do
     9      VBoxManage natnetwork remove --netname natnet$i
    10      i=$((i+1))
    11  done
    12  
    13  VBoxManage natnetwork list