-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use max qfi in PDU session as tunnel key
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
sudo ip xfrm policy flush | ||
sudo ip xfrm state flush | ||
|
||
# Remove all GRE interfaces | ||
GREs=$(ip link show type gre | awk 'NR%2==1 {print $2}' | cut -d @ -f 1) | ||
for GRE in ${GREs}; do | ||
sudo ip link del ${GRE} | ||
echo del ${GRE} | ||
done | ||
|
||
# Remove all XFRM interfaces | ||
XFRMIs=$(ip link show type xfrm | awk 'NR%2==1 {print $2}' | cut -d @ -f 1) | ||
for XFRMI in ${XFRMIs}; do | ||
sudo ip link del ${XFRMI} | ||
echo del ${XFRMI} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters