summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-01 21:47:41 +0200
committerChristian Breunig <christian@breunig.cc>2024-04-01 21:53:37 +0200
commit09ac2851f89f2b7d94a21c3506e46f380e961fba (patch)
treee8d6d84eeadf70311b7125e2d39ef755af0f81ce /python
parent6e0fdbcbba39691461f791c7a68a2c6c5091d2c1 (diff)
downloadvyos-1x-09ac2851f89f2b7d94a21c3506e46f380e961fba.tar.gz
vyos-1x-09ac2851f89f2b7d94a21c3506e46f380e961fba.zip
vrf: T3655: always use full nft command name (e.g. --check over -c)
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/interface.py2
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}')