forked from libreqoe/libreqos

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 Commit Parent 206ba264
+221 -6
4 changed files
+221 -6
4 changed files