summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
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 3b3536301..8101fdcc3 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -416,7 +416,7 @@ class Interface(Control):
def _nft_check_and_run(self, nft_command):
# Check if deleting is possible first to avoid raising errors
- _, err = self._popen(f'nft --check {nft_command}')
+ _, err = self._popen(f'nft --check {nft_command} 2>/dev/null')
if not err:
# Remove map element
self._cmd(f'nft {nft_command}')