#!/bin/bash set -e $NFT add table test-ip $NFT add chain test-ip x # should have handle 1 $NFT add chain test-ip y # should have handle 2 $NFT add chain test-ip z # should have handle 3 $NFT add table ip6 test-ip6 $NFT add chain ip6 test-ip6 x # should have handle 1 $NFT add chain ip6 test-ip6 y # should have handle 2 $NFT add chain ip6 test-ip6 z # should have handle 3 $NFT delete chain test-ip handle 2 $NFT delete chain ip6 test-ip6 handle 3