coreos / go-iptables

Go wrapper around iptables utility
Apache License 2.0
1.11k stars 257 forks source link

Add yet another pattern to IsNotExist #108

Closed danwinship closed 10 months ago

danwinship commented 1 year ago

https://github.com/coreos/go-iptables/pull/107 handled iptables-legacy but not iptables-nft.

Seen in https://github.com/containernetworking/plugins/actions/runs/5715835655/job/15486163430?pr=935:

  [FAILED] Unexpected error:
      <*errors.errorString | 0xc0003bdb20>: 
      running [/usr/sbin/iptables -t nat -D POSTROUTING -s 10.1.2.2 -j CNI-43a5a67926c1a665ff4c21b7 -m comment --comment name: "testConfig" id: "dummy-0" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Chain 'CNI-43a5a67926c1a665ff4c21b7' does not exist
danwinship commented 1 year ago

@squeed