How ytti/oxidized works
Oxidized backs up network-device configurations. The principal workflow loads device inventory and configuration, schedules retrieval jobs, connects through a device-specific input, applies a model to collect and format configuration, and persists revisions through an output. Sources, inputs, models, outputs, and hooks are extensible; documented capabilities also include API-triggered fetches, node reloads, and change-event-triggered fetches. Most runtime wiring was not excerpted, so uncertain connections are marked dashed with no evidence path; the README documents the product capabilities and extra/syslog.rb references the REST client.
Main entry points: manager.rb Plugin manager · node.rb Device node · output Output backends · nodes.rb Node inventory
Components 20
Configuration and inventory
- Configuration
lib/oxidized/config.rb - Plugin manager
lib/oxidized/manager.rb - Inventory sources
lib/oxidized/source - Node inventory
lib/oxidized/nodes.rb
Device retrieval
- Job scheduler
lib/oxidized/jobs.rb - Retrieval job
lib/oxidized/job.rb - Worker pool
lib/oxidized/worker.rb - Device node
lib/oxidized/node.rb - Connection inputs
lib/oxidized/input - Device models
lib/oxidized/model
Storage and notifications
- Output backends
lib/oxidized/output - Config repository
- Hooks
lib/oxidized/hook
Operations
- CLI
lib/oxidized/cli.rb - REST API
- Syslog helper
extra/syslog.rb - REST client
extra/rest_client.rb
Other components
- Operator
- Network devices
- Remote Git
Connections 26
- Operator → CLI: starts
- CLI → Configuration: loads
- Configuration → Plugin manager: configures plugins
- Plugin manager → Inventory sources: loads source
- Plugin manager → Connection inputs: loads input
- Plugin manager → Output backends: loads output
- Plugin manager → Device models: loads model
- Plugin manager → Hooks: loads hook
- Inventory sources → Node inventory: provide inventory
- Node inventory → Job scheduler: schedule nodes
- Job scheduler → Retrieval job: queues retrieval
- Worker pool → Retrieval job: processes
- Retrieval job → Device node: retrieves config
- Device node → Connection inputs: connects through
- Connection inputs → Network devices: fetches config
- Device node → Device models: formats config
- Worker pool → Output backends: stores config
- Output backends → Config repository: writes revisions
- Output backends → Hooks: triggers hooks
- Hooks → Remote Git: pushes changes
- Operator → REST API: requests operations
- REST API → Job scheduler: queues node
- REST API → Node inventory: reloads inventory
- REST API → Device node: fetches configuration
- Network devices → Syslog helper: signals changes
- Syslog helper → REST client: requests node queue
extra/syslog.rb