Something went wrong. Try again.
forked from libreqoe/libreqos
Something went wrong. Try again.
Add a device_weights() call to the Python API
Adds the ability to call device_weights() from liblqos_python. This returns a set of objects containing circuit_id and weight. 1. The weights are loaded from ShapedDevices.csv using HALF the maximum download mbps. 2. If LTS is enabled, a REST call is made to an LTS API located at https:/stats.libreqos.io/api/device_weights and the results merged in (overwiting existing entries). 3. The merged weights are returned as a Python array of classes. Example Python code: ```python from liblqos_python import get_weights; weights = get_weights(); for w in weights: print(w.circuit_id + " : " + str(w.weight)); ```
Author Herbert Wolverson Date (Feb 8, 2024, 6:01 PM UTC) Commit
Copy SHA
Parent 206ba264 206ba2641fb3ec3a8d3206ce9a43eb428cc98c2c