From 6966fa47aa5101f29c8ab20b5f63f860e6b2d563 Mon Sep 17 00:00:00 2001 From: Antoine Van Elstraete Date: Sat, 4 Dec 2021 23:00:37 +0100 Subject: [PATCH] Ignore negative values --- mikrotik_ | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mikrotik_ b/mikrotik_ index 0a00219..6223e37 100755 --- a/mikrotik_ +++ b/mikrotik_ @@ -10,11 +10,13 @@ def config(name, port_max, ports_label): for port in range(1, port_max + 1): print(f"down{port}.label {ports_label[port - 1]}") print(f"down{port}.type DERIVE") + print(f"down{port}.min 0") print(f"down{port}.graph no") print(f"down{port}.cdef down{port},8,*") for port in range(1, port_max + 1): print(f"up{port}.label {ports_label[port - 1]}") print(f"up{port}.type DERIVE") + print(f"up{port}.min 0") print(f"up{port}.negative down{port}") print(f"up{port}.cdef up{port},8,*")