Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion find_veth_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ do
# #using the PID, we can get the interface index of the eth0 interfae inside the container
# INDEX=$(sudo cat /proc/$PID/net/igmp |grep "$INTF"| awk '{print $1}')
# #using the index, we can identify the veth interface
veth=$(sudo ip a|grep "${INDEX} veth"|awk '{print $2}'|cut -d '@' -f 1)
veth=$(sudo ip a|grep -e "^${INDEX} veth"|awk '{print $2}'|cut -d '@' -f 1)
if [[ -z $veth ]]
then
veth="N/A\t" #add extra Tabs straight away for prettify
Expand Down