Skip to content

r2unit/netbox-plugin-impact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Netbox Impact - Midleware

How to use

Running Middleware

Middleware Sever Mode

go run main.go -mode=server -netbox-url="https://netbox.quanza.net" -netbox-token="TOKEN_EXAMPLE"

Example CURL

curl -X POST http://localhost/calculateImpact \
  -H "Content-Type: application/json" \
  -d '{"device_ids": [], "circuit_ids": [202], "interface_ids": [], "impact_type": "incident-work"}'

Middleware CLI Mode

go run main.go -mode=server -netbox-url="https://netbox.quanza.net" -netbox-token="TOKEN_EXAMPLE"

Formula

Formula:

A forum module is first calculated based on the weight given by the user and the weight per device, which are calculated in the formula below

  • $D$ is the count of devices
  • $C$ is the count of circuits
  • $I$ is the count of interfaces
  • $M$ is the impact type multiplier
  • $R$ is the impact type multiplier (e.g., 1.0, 1.5, or 2.0)

To account for redudance in the circuits, there is a factor $Ri$ for every circuit $i$ for a circuit with both terminations connected on the same node.

$$ Impact=M×(5D+i=1∑C​(3×Ri​)+I) $$

Computed formula

\text{Impact} = M \times \Bigl(5 \times \text{# Devices} + \sum_{i=1}^{C}\bigl(3 \times R_i\bigr) + 1 \times \text{# Interfaces}\Bigr)

Final Impact Formula

After checking the weights and the formula we get a final impact formula which is as follows.

$$ Impact=M×(5D+Total Circuit Impact+I) $$

About

A Netbox plugin that runs impact based on devices and circuits.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages