-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Added WiFi mesh integration #170
Closes #170
- Loading branch information
Showing
26 changed files
with
1,367 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: "3" | ||
|
||
services: | ||
influxdb: | ||
image: influxdb:1.8-alpine | ||
volumes: | ||
- influxdb-data:/var/lib/influxdb | ||
ports: | ||
- "8086:8086" | ||
environment: | ||
INFLUXDB_DB: openwisp2 | ||
INFLUXDB_USER: openwisp | ||
INFLUXDB_USER_PASSWORD: openwisp | ||
|
||
redis: | ||
image: redis:alpine | ||
ports: | ||
- "6379:6379" | ||
entrypoint: redis-server --appendonly yes | ||
|
||
volumes: | ||
influxdb-data: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from django.contrib import admin | ||
from swapper import load_model | ||
|
||
from openwisp_network_topology.admin import TopologyAdmin | ||
|
||
from . import settings as app_settings | ||
|
||
WifiMesh = load_model('topology_device', 'WifiMesh') | ||
Topology = load_model('topology', 'Topology') | ||
|
||
|
||
class WifiMeshInlineAdmin(admin.StackedInline): | ||
model = WifiMesh | ||
extra = 0 | ||
max_num = 1 | ||
|
||
|
||
if app_settings.WIFI_MESH_INTEGRATION: | ||
TopologyAdmin.inlines = TopologyAdmin.inlines + [WifiMeshInlineAdmin] |
Oops, something went wrong.