diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-02 18:32:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-02 18:32:23 +0200 |
commit | 7ee2f016878ed29120baa66f8e1d372f97402c96 (patch) | |
tree | e480e1f12e0ca1dbe4c29fdccf213063ceda32a3 /python/vyos/ifconfig | |
parent | 2a031e68cbe6b0e9beb6e57b2f93b4ec4d95c84f (diff) | |
parent | 0529371bc587e2fcdd8794061e9bb9d60c792c43 (diff) | |
download | vyos-1x-7ee2f016878ed29120baa66f8e1d372f97402c96.tar.gz vyos-1x-7ee2f016878ed29120baa66f8e1d372f97402c96.zip |
Merge pull request #3230 from c-po/syntax-cleanup
firewall: nat: policy: vrf: nft call syntax and import cleanup
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r-- | python/vyos/ifconfig/interface.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index c87fb9c71..b2cb621bc 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -415,7 +415,7 @@ class Interface(Control): else: nft_del_element = f'delete element inet vrf_zones ct_iface_map {{ "{self.ifname}" }}' # Check if deleting is possible first to avoid raising errors - _, err = self._popen(f'nft -c {nft_del_element}') + _, err = self._popen(f'nft --check {nft_del_element}') if not err: # Remove map element self._cmd(f'nft {nft_del_element}') |