File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
log-collector-script/linux Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -645,7 +645,12 @@ get_network_policy_ebpf_info() {
645645 echo " *** EBPF loaded data ***" >> " ${COLLECT_DIR} " /networking/ebpf-data.txt
646646 LOADED_EBPF=$( /opt/cni/bin/aws-eks-na-cli ebpf loaded-ebpfdata | tee -a " ${COLLECT_DIR} " /networking/ebpf-data.txt)
647647
648- for mapid in $( echo " $LOADED_EBPF " | grep " Map ID:" | sed ' s/Map ID: \+//' | sort | uniq) ; do
648+ for mapid in $( echo " $LOADED_EBPF " | grep -E ' Map Name:[[:space:]]*(cp_ingress_map|cp_egress_map)' -A1 | grep " Map ID:" | sed ' s/Map ID: \+//' | sort | uniq) ; do
649+ echo " *** EBPF Maps Data for Map ID $mapid ***" >> " ${COLLECT_DIR} " /networking/ebpf-cp-maps-data.txt
650+ /opt/cni/bin/aws-eks-na-cli ebpf dump-cp-maps $mapid >> " ${COLLECT_DIR} " /networking/ebpf-cp-maps-data.txt
651+ done
652+
653+ for mapid in $( echo " $LOADED_EBPF " | grep -E ' Map Name:[[:space:]]*(ingress_map|egress_map)' -A1 | grep " Map ID:" | sed ' s/Map ID: \+//' | sort | uniq) ; do
649654 echo " *** EBPF Maps Data for Map ID $mapid ***" >> " ${COLLECT_DIR} " /networking/ebpf-maps-data.txt
650655 /opt/cni/bin/aws-eks-na-cli ebpf dump-maps $mapid >> " ${COLLECT_DIR} " /networking/ebpf-maps-data.txt
651656 done
You can’t perform that action at this time.
0 commit comments