diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-01 21:47:41 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-04-02 16:33:03 +0000 |
commit | ed281ef724203dd18a7238edbc0707427050b91e (patch) | |
tree | f42c07b9ab42cd8c09ac5330665f378be70ddc73 /python/vyos/ifconfig | |
parent | 33cb8f4f9665c8b634d998e39354d00d6bf31855 (diff) | |
download | vyos-1x-ed281ef724203dd18a7238edbc0707427050b91e.tar.gz vyos-1x-ed281ef724203dd18a7238edbc0707427050b91e.zip |
vrf: T3655: always use full nft command name (e.g. --check over -c)
(cherry picked from commit 09ac2851f89f2b7d94a21c3506e46f380e961fba)
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 430a8dfc3..b159b2367 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -400,7 +400,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}') |