From b0ff63d278fdd17a57463e73a790a63361786365 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Wed, 4 Jan 2023 15:07:47 +0000 Subject: [PATCH] Update .gitignore, fix syntax in LibreQoS.py * Add src/rust/target to the .gitignore file, to avoid including Rust build artifacts in the Git tree. * Fix the syntax when calling the IP mapping helper and deleting IP mappings. Signed-off-by: Herbert Wolverson --- .gitignore | 3 +++ src/LibreQoS.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index dc4dac2f..0218a679 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,9 @@ src/longTermStats.json src/queuingStructure.json src/tinsStats.json +# Ignore Rust build artifacts +src/rust/target + # Ignore project folders for some IDEs .idea/ __pycache__ diff --git a/src/LibreQoS.py b/src/LibreQoS.py index 51693521..6c27754b 100755 --- a/src/LibreQoS.py +++ b/src/LibreQoS.py @@ -908,9 +908,9 @@ def refreshShapersUpdateOnly(): def removeDeviceIPsFromFilter(circuit): for device in circuit['devices']: for ipv4 in device['ipv4s']: - shell('./xdp_iphash_to_cpu_cmdline del --ip ' + str(ipv4)) + shell('./xdp_iphash_to_cpu_cmdline del ip ' + str(ipv4)) for ipv6 in device['ipv6s']: - shell('./xdp_iphash_to_cpu_cmdline del --ip ' + str(ipv6)) + shell('./xdp_iphash_to_cpu_cmdline del ip ' + str(ipv6)) def addDeviceIPsToFilter(circuit, cpuNumHex):