Operating Modes and Source of Truth

Version: LibreQoS v2.0 (archived, v2.0-only). For current releases see the LibreQoS v3 documentation.

Page Purpose

Use this page to decide where permanent shaping changes should live before you go to production.

Need definitions for terms on this page? See the Glossary.

For the full file/ownership/runtime diagram, see Topology Data Flow. For static virtualization and queue-visibility behavior, see Advanced Configuration Reference.

        flowchart TD
    A[Choose Where Changes Live] --> B{Using built-in CRM/NMS integration?}
    B -->|Yes| C[Built-in Integrations Mode]
    B -->|No| D{Generating files from your own scripts/systems?}
    D -->|Yes| E[Custom Source of Truth Mode]
    D -->|No| F[Manual Files Mode]
    C --> G[Integration sync keeps shaping data current]
    E --> H[Your scripts refresh the shaping files]
    F --> I[You maintain the files directly]
    

LibreQoS supports three common operating modes.

Custom Source of Truth

In this mode, your own scripts or systems generate network.json and ShapedDevices.csv.

Key behavior:

  • Your external workflow is where permanent changes belong.

  • WebUI edits are fine for quick operational changes.

  • Keep your long-term changes in your own scripts or automation.

  • Use topology.compile_mode = "full" when the Parent Node values in ShapedDevices.csv should shape under the named hierarchy in network.json.

  • Use flat only when generated CPU bucket queues such as Generated_PN_1 are the intended queue layout.

Manual Files Mode

In this mode, you maintain network.json and ShapedDevices.csv yourself.

Key behavior:

  • Best fit for small networks, short pilots, or temporary workarounds.

  • WebUI helps you validate what LibreQoS is using.

  • Manual discipline matters because there is no upstream system keeping those files in sync for you.

  • Use topology.compile_mode = "full" when top-level or AP/Site parent shaping should follow network.json.

  • If shaping_inputs.json shows resolution_source: "flat_bucket", LibreQoS is in flat mode and circuits will show generated parent queues instead of the names from network.json.

Mode Declaration Checklist (Before Go-Live)

  1. Pick one primary place for permanent shaping changes.

  2. Confirm which system writes production shaping data.

  3. Confirm scheduler refresh behavior and overwrite cadence.

  4. Document your hotfix workflow (WebUI, external editor, or both).

  5. Do not maintain competing edits in multiple systems for the same objects.

Topology and Mode Expectations

  • Single-interface (on-a-stick) and VLAN-heavy designs are valid, but require explicit queue/interface planning and careful validation after changes.

  • Integration mode is best when you want CRM/NMS-driven topology and subscriber lifecycle data to control shaping.

  • If you need topology behavior that your integration cannot represent, use custom source of truth mode and keep the responsibility clear.

See:

If you are running built-in integrations, continue to CRM/NMS Integrations.