tests: shell: fetch rule handle with '-a' option and then delete rule
PATCH v2 1/1 tests: shell: fetch rule handle with '-a' option and then delete rule
Fetch rule handle and then delete rule via that rule handle.
Signed-off-by Harsha Sharma <[email protected]>
---
Changes in v2:
- No need to use grep
tests/shell/testcases/cache/0001_cache_handling_0 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tests/shell/testcases/cache/0001_cache_handling_0 +2 -1
@@ -24,6 +24,7 @@ table inet test { set -e $NFT -f $tmpfile -$NFT delete rule inet test test handle 2 +rule_handle=$($NFT list ruleset -a | awk '/saddr/{print $NF}') +$NFT delete rule inet test test handle $rule_handle $NFT delete set inet test test $NFT -f $tmpfile
Signature · 1 line
2.11.0
Quoted 1 line · Harsha Sharma
Fetch rule handle and then delete rule via that rule handle.
Applied, thanks Harsha.