nautobot-trax 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nautobot_trax-0.1.0/LICENSE +15 -0
- nautobot_trax-0.1.0/PKG-INFO +131 -0
- nautobot_trax-0.1.0/README.md +101 -0
- nautobot_trax-0.1.0/nautobot_trax/__init__.py +53 -0
- nautobot_trax-0.1.0/nautobot_trax/api/__init__.py +1 -0
- nautobot_trax-0.1.0/nautobot_trax/api/serializers.py +368 -0
- nautobot_trax-0.1.0/nautobot_trax/api/urls.py +20 -0
- nautobot_trax-0.1.0/nautobot_trax/api/views.py +173 -0
- nautobot_trax-0.1.0/nautobot_trax/app-config-schema.json +1 -0
- nautobot_trax-0.1.0/nautobot_trax/data/sat_list_nautobot_seed.csv +94 -0
- nautobot_trax-0.1.0/nautobot_trax/docs/models/traxmissionplan.html +23 -0
- nautobot_trax-0.1.0/nautobot_trax/docs/models/traxmissiontransportoption.html +23 -0
- nautobot_trax-0.1.0/nautobot_trax/docs/models/traxoperation.html +21 -0
- nautobot_trax-0.1.0/nautobot_trax/filters.py +289 -0
- nautobot_trax-0.1.0/nautobot_trax/forms.py +867 -0
- nautobot_trax-0.1.0/nautobot_trax/jobs/__init__.py +5 -0
- nautobot_trax-0.1.0/nautobot_trax/jobs/dev_seed_job.py +800 -0
- nautobot_trax-0.1.0/nautobot_trax/management/__init__.py +1 -0
- nautobot_trax-0.1.0/nautobot_trax/management/commands/__init__.py +1 -0
- nautobot_trax-0.1.0/nautobot_trax/management/commands/cleanup_map_archives.py +42 -0
- nautobot_trax-0.1.0/nautobot_trax/management/commands/setup_operator_user.py +24 -0
- nautobot_trax-0.1.0/nautobot_trax/map_storage.py +98 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0001_initial.py +525 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0002_missionplan_kit_tag.py +28 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0003_missionplan_tenant.py +53 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0004_missionplan_location_fk.py +53 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0005_missiontransportoption_nautobot_trax_mto_unique_circuit_for_circuit_type.py +23 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0006_satellite_is_geostationary_alter_satellite_orbit.py +22 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0007_alter_missionplan_tenant.py +25 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0008_missionplan_supporting_kits.py +20 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0009_map_tile_set.py +73 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0010_maptileset_zoom_levels.py +15 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/0011_private_map_archives.py +83 -0
- nautobot_trax-0.1.0/nautobot_trax/migrations/__init__.py +0 -0
- nautobot_trax-0.1.0/nautobot_trax/models/__init__.py +19 -0
- nautobot_trax-0.1.0/nautobot_trax/models/comms_card.py +76 -0
- nautobot_trax-0.1.0/nautobot_trax/models/frequency.py +419 -0
- nautobot_trax-0.1.0/nautobot_trax/models/map.py +138 -0
- nautobot_trax-0.1.0/nautobot_trax/models/mission.py +425 -0
- nautobot_trax-0.1.0/nautobot_trax/navigation.py +142 -0
- nautobot_trax-0.1.0/nautobot_trax/seed.py +297 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/404.html +1553 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/admin/compatibility_matrix.html +1771 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/admin/install.html +1852 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/admin/release_notes/index.html +1653 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/admin/release_notes/version_0.1.html +1821 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/admin/release_notes/version_1.0.html +1749 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/admin/uninstall.html +1766 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/admin/upgrade.html +1766 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/_mkdocstrings.css +119 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/extra.css +172 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/favicon.ico +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/images/favicon.png +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/bundle.471ce7a9.min.js +29 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/bundle.471ce7a9.min.js.map +7 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/glightbox.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.ar.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.da.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.de.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.du.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.el.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.es.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.fi.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.fr.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.he.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.hi.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.hu.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.hy.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.it.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.ja.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.jp.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.kn.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.ko.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.multi.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.nl.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.no.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.pt.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.ro.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.ru.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.sa.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.stemmer.support.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.sv.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.ta.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.te.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.th.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.tr.min.js +18 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.vi.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/min/lunr.zh.min.js +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/tinyseg.js +206 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/lunr/wordcut.js +6708 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/workers/search.b8dbb3d2.min.js +42 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/javascripts/workers/search.b8dbb3d2.min.js.map +7 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/nautobot_logo.png +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/nautobot_logo.svg +131 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/networktocode_bw.png +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/overrides/partials/copyright.html +22 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/stylesheets/glightbox.min.css +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/stylesheets/main.3cba04c6.min.css +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/stylesheets/main.3cba04c6.min.css.map +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/stylesheets/palette.06af60db.min.css +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/assets/stylesheets/palette.06af60db.min.css.map +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/dev/arch_decision.html +1669 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/dev/code_reference/api.html +5577 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/dev/code_reference/index.html +1660 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/dev/code_reference/package.html +1972 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/dev/contributing.html +1855 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/dev/dev_environment.html +2650 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/dev/extending.html +1750 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/dev/operational_map.html +2172 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/dev/release_checklist.html +2274 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/images/trax_full.png +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/index.html +1913 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/media/ss_main_page_dark.png +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/media/ss_main_page_light.png +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/commscard.html +1731 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/commscardentry.html +1733 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/frequency.html +1733 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/frequencyband.html +1713 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/maptileset.html +1738 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/missionfrequencyset.html +1737 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/missionplan.html +1737 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/missiontransportoption.html +1783 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/nautobottraxexamplemodel.html +1824 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/operation.html +1733 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/models/satellite.html +1754 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/objects.inv +10 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/search/search_index.json +1 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/sitemap.xml +173 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/sitemap.xml.gz +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/user/app_getting_started.html +1773 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/user/app_overview.html +1836 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/user/app_use_cases.html +1811 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/user/external_interactions.html +1795 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/user/faq.html +1660 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/docs/user/operational_map.html +1990 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/img/sword.svg +8 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/js/mission_frequency_set_form.js +186 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/leaflet/LICENSE +26 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/leaflet/README.txt +8 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/leaflet/images/marker-icon-2x.png +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/leaflet/images/marker-icon.png +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/leaflet/images/marker-shadow.png +0 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/leaflet/leaflet.css +661 -0
- nautobot_trax-0.1.0/nautobot_trax/static/nautobot_trax/leaflet/leaflet.js +6 -0
- nautobot_trax-0.1.0/nautobot_trax/tables.py +454 -0
- nautobot_trax-0.1.0/nautobot_trax/templates/nautobot_trax/comms_card_coming_soon.html +20 -0
- nautobot_trax-0.1.0/nautobot_trax/templates/nautobot_trax/operational_map.html +228 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/__init__.py +1 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/fixtures.py +94 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/test_api.py +225 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/test_filters.py +288 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/test_forms.py +239 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/test_map_security.py +291 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/test_models.py +348 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/test_operational_map.py +402 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/test_supporting_kits.py +142 -0
- nautobot_trax-0.1.0/nautobot_trax/tests/test_views.py +176 -0
- nautobot_trax-0.1.0/nautobot_trax/urls.py +35 -0
- nautobot_trax-0.1.0/nautobot_trax/utils.py +226 -0
- nautobot_trax-0.1.0/nautobot_trax/views.py +736 -0
- nautobot_trax-0.1.0/pyproject.toml +255 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Apache Software License 2.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, Network to Code, LLC
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nautobot-trax
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Trusted Automation at the Edge - Powered by Nautobot. Tools to enable tactical missions.
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Keywords: nautobot,nautobot-app,nautobot-plugin
|
|
8
|
+
Author: Dwayne Camacho
|
|
9
|
+
Author-email: dwayne.a.camacho@gmail.com
|
|
10
|
+
Requires-Python: >=3.10,<3.14
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Provides-Extra: all
|
|
20
|
+
Requires-Dist: mgrs (>=1.5.0)
|
|
21
|
+
Requires-Dist: nautobot (>=3.1.8,<4.0.0)
|
|
22
|
+
Requires-Dist: nautobot-design-builder (>=3.0.0,<4.0.0)
|
|
23
|
+
Requires-Dist: nautobot-golden-config (>=3.0.0,<4.0.0)
|
|
24
|
+
Requires-Dist: nautobot-plugin-nornir (>=3.0.0,<4.0.0)
|
|
25
|
+
Project-URL: Documentation, https://github.com/d-camacho/nautobot-app-trax/tree/main/docs
|
|
26
|
+
Project-URL: Homepage, https://github.com/d-camacho/nautobot-app-trax
|
|
27
|
+
Project-URL: Repository, https://github.com/d-camacho/nautobot-app-trax
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# Nautobot TRAX
|
|
31
|
+
|
|
32
|
+
<p align="center">
|
|
33
|
+
<img src="https://github.com/d-camacho/nautobot-app-trax/blob/main/docs/images/trax_full.png" class="logo" height="400px" alt="Nautobot TRAX logo">
|
|
34
|
+
<br>
|
|
35
|
+
<a href="https://github.com/nautobot/nautobot-app-nautobot-trax/actions"><img src="https://github.com/nautobot/nautobot-app-nautobot-trax/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
|
|
36
|
+
<a href="https://docs.nautobot.com/projects/nautobot-trax/en/latest/"><img src="https://readthedocs.org/projects/nautobot-app-nautobot-trax/badge/" alt="Docs"></a>
|
|
37
|
+
<a href="https://pypi.org/project/nautobot-trax/"><img src="https://img.shields.io/pypi/v/nautobot-trax" alt="PyPI version"></a>
|
|
38
|
+
<a href="https://pypi.org/project/nautobot-trax/"><img src="https://img.shields.io/pypi/dm/nautobot-trax" alt="PyPI downloads"></a>
|
|
39
|
+
<br>
|
|
40
|
+
A Nautobot App for tactical mission communications planning, SATCOM transport, and deployable network package execution.
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
## Overview
|
|
44
|
+
|
|
45
|
+
Nautobot TRAX supports tactical mission communications by combining mission planning, SATCOM and Combat Net Radio (CNR) frequency coordination, and transport-path design into a single operational workflow. Teams can model and execute mission packages that span CNR, SATCOM, terrestrial transport, and constrained field-network conditions.
|
|
46
|
+
|
|
47
|
+
The app links mission plans, transport options, frequency sets, operations, and supporting inventory so planners can coordinate PACE communications, map transport dependencies to real devices/circuits/providers, operational tracking, and prepare deployable tactical network packages with traceable data from planning through execution.
|
|
48
|
+
|
|
49
|
+
## Release Status
|
|
50
|
+
|
|
51
|
+
TRAX 0.1.x is an early release series. Pin the version used in your environment
|
|
52
|
+
and review migration requirements before upgrading. Interfaces and data models
|
|
53
|
+
may continue to evolve before version 1.0.
|
|
54
|
+
|
|
55
|
+
## Compatibility
|
|
56
|
+
|
|
57
|
+
- Nautobot: >= 3.1.8, < 4.0.0
|
|
58
|
+
- Python: >= 3.10, < 3.14; hardened Operational Map archive processing requires Python 3.11+
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
Install from PyPI:
|
|
63
|
+
|
|
64
|
+
```shell
|
|
65
|
+
pip install nautobot-trax
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Pin a specific release:
|
|
69
|
+
|
|
70
|
+
```shell
|
|
71
|
+
pip install nautobot-trax==0.1.0
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
To keep the app installed during Nautobot upgrades, add it to local requirements:
|
|
75
|
+
|
|
76
|
+
```shell
|
|
77
|
+
echo nautobot-trax >> local_requirements.txt
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Enable in Nautobot
|
|
81
|
+
|
|
82
|
+
Add the app to your Nautobot configuration:
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
PLUGINS = ["nautobot_trax"]
|
|
86
|
+
|
|
87
|
+
# Optional plugin settings
|
|
88
|
+
# PLUGINS_CONFIG = {
|
|
89
|
+
# "nautobot_trax": {
|
|
90
|
+
# # Add settings here
|
|
91
|
+
# }
|
|
92
|
+
# }
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Run migrations and post-upgrade tasks:
|
|
96
|
+
|
|
97
|
+
```shell
|
|
98
|
+
nautobot-server post_upgrade
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Restart Nautobot services after installation or upgrade.
|
|
102
|
+
|
|
103
|
+
## Documentation
|
|
104
|
+
|
|
105
|
+
- User Guide: https://docs.nautobot.com/projects/nautobot-trax/en/latest/user/app_overview/
|
|
106
|
+
- Administrator Guide: https://docs.nautobot.com/projects/nautobot-trax/en/latest/admin/install/
|
|
107
|
+
- Developer Guide: https://docs.nautobot.com/projects/nautobot-trax/en/latest/dev/contributing/
|
|
108
|
+
- Release Notes: https://docs.nautobot.com/projects/nautobot-trax/en/latest/admin/release_notes/
|
|
109
|
+
- FAQ: https://docs.nautobot.com/projects/nautobot-trax/en/latest/user/faq/
|
|
110
|
+
|
|
111
|
+
## Contributing
|
|
112
|
+
|
|
113
|
+
Contributions are welcome. For development setup and workflows, see:
|
|
114
|
+
|
|
115
|
+
- https://docs.nautobot.com/projects/nautobot-trax/en/latest/dev/dev_environment/
|
|
116
|
+
- https://docs.nautobot.com/projects/nautobot-trax/en/latest/dev/contributing/
|
|
117
|
+
|
|
118
|
+
## Support
|
|
119
|
+
|
|
120
|
+
For questions, start with the FAQ and then reach out in the Network to Code Slack #nautobot channel:
|
|
121
|
+
|
|
122
|
+
- http://slack.networktocode.com/
|
|
123
|
+
|
|
124
|
+
## Operational Map deployment
|
|
125
|
+
|
|
126
|
+
Configure persistent private atlas storage before uploading basemaps. Existing
|
|
127
|
+
atlases require the private-storage migration with their original media mounted.
|
|
128
|
+
See the [Operational Map guide](https://github.com/d-camacho/nautobot-app-trax/blob/main/docs/user/operational_map.md) for storage, upgrade,
|
|
129
|
+
query limits, and permissions. Demo operator provisioning is an explicit opt-in;
|
|
130
|
+
the supplied development configuration enables it, while normal installs do not.
|
|
131
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Nautobot TRAX
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://github.com/d-camacho/nautobot-app-trax/blob/main/docs/images/trax_full.png" class="logo" height="400px" alt="Nautobot TRAX logo">
|
|
5
|
+
<br>
|
|
6
|
+
<a href="https://github.com/nautobot/nautobot-app-nautobot-trax/actions"><img src="https://github.com/nautobot/nautobot-app-nautobot-trax/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
|
|
7
|
+
<a href="https://docs.nautobot.com/projects/nautobot-trax/en/latest/"><img src="https://readthedocs.org/projects/nautobot-app-nautobot-trax/badge/" alt="Docs"></a>
|
|
8
|
+
<a href="https://pypi.org/project/nautobot-trax/"><img src="https://img.shields.io/pypi/v/nautobot-trax" alt="PyPI version"></a>
|
|
9
|
+
<a href="https://pypi.org/project/nautobot-trax/"><img src="https://img.shields.io/pypi/dm/nautobot-trax" alt="PyPI downloads"></a>
|
|
10
|
+
<br>
|
|
11
|
+
A Nautobot App for tactical mission communications planning, SATCOM transport, and deployable network package execution.
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
Nautobot TRAX supports tactical mission communications by combining mission planning, SATCOM and Combat Net Radio (CNR) frequency coordination, and transport-path design into a single operational workflow. Teams can model and execute mission packages that span CNR, SATCOM, terrestrial transport, and constrained field-network conditions.
|
|
17
|
+
|
|
18
|
+
The app links mission plans, transport options, frequency sets, operations, and supporting inventory so planners can coordinate PACE communications, map transport dependencies to real devices/circuits/providers, operational tracking, and prepare deployable tactical network packages with traceable data from planning through execution.
|
|
19
|
+
|
|
20
|
+
## Release Status
|
|
21
|
+
|
|
22
|
+
TRAX 0.1.x is an early release series. Pin the version used in your environment
|
|
23
|
+
and review migration requirements before upgrading. Interfaces and data models
|
|
24
|
+
may continue to evolve before version 1.0.
|
|
25
|
+
|
|
26
|
+
## Compatibility
|
|
27
|
+
|
|
28
|
+
- Nautobot: >= 3.1.8, < 4.0.0
|
|
29
|
+
- Python: >= 3.10, < 3.14; hardened Operational Map archive processing requires Python 3.11+
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
Install from PyPI:
|
|
34
|
+
|
|
35
|
+
```shell
|
|
36
|
+
pip install nautobot-trax
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Pin a specific release:
|
|
40
|
+
|
|
41
|
+
```shell
|
|
42
|
+
pip install nautobot-trax==0.1.0
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
To keep the app installed during Nautobot upgrades, add it to local requirements:
|
|
46
|
+
|
|
47
|
+
```shell
|
|
48
|
+
echo nautobot-trax >> local_requirements.txt
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Enable in Nautobot
|
|
52
|
+
|
|
53
|
+
Add the app to your Nautobot configuration:
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
PLUGINS = ["nautobot_trax"]
|
|
57
|
+
|
|
58
|
+
# Optional plugin settings
|
|
59
|
+
# PLUGINS_CONFIG = {
|
|
60
|
+
# "nautobot_trax": {
|
|
61
|
+
# # Add settings here
|
|
62
|
+
# }
|
|
63
|
+
# }
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Run migrations and post-upgrade tasks:
|
|
67
|
+
|
|
68
|
+
```shell
|
|
69
|
+
nautobot-server post_upgrade
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Restart Nautobot services after installation or upgrade.
|
|
73
|
+
|
|
74
|
+
## Documentation
|
|
75
|
+
|
|
76
|
+
- User Guide: https://docs.nautobot.com/projects/nautobot-trax/en/latest/user/app_overview/
|
|
77
|
+
- Administrator Guide: https://docs.nautobot.com/projects/nautobot-trax/en/latest/admin/install/
|
|
78
|
+
- Developer Guide: https://docs.nautobot.com/projects/nautobot-trax/en/latest/dev/contributing/
|
|
79
|
+
- Release Notes: https://docs.nautobot.com/projects/nautobot-trax/en/latest/admin/release_notes/
|
|
80
|
+
- FAQ: https://docs.nautobot.com/projects/nautobot-trax/en/latest/user/faq/
|
|
81
|
+
|
|
82
|
+
## Contributing
|
|
83
|
+
|
|
84
|
+
Contributions are welcome. For development setup and workflows, see:
|
|
85
|
+
|
|
86
|
+
- https://docs.nautobot.com/projects/nautobot-trax/en/latest/dev/dev_environment/
|
|
87
|
+
- https://docs.nautobot.com/projects/nautobot-trax/en/latest/dev/contributing/
|
|
88
|
+
|
|
89
|
+
## Support
|
|
90
|
+
|
|
91
|
+
For questions, start with the FAQ and then reach out in the Network to Code Slack #nautobot channel:
|
|
92
|
+
|
|
93
|
+
- http://slack.networktocode.com/
|
|
94
|
+
|
|
95
|
+
## Operational Map deployment
|
|
96
|
+
|
|
97
|
+
Configure persistent private atlas storage before uploading basemaps. Existing
|
|
98
|
+
atlases require the private-storage migration with their original media mounted.
|
|
99
|
+
See the [Operational Map guide](https://github.com/d-camacho/nautobot-app-trax/blob/main/docs/user/operational_map.md) for storage, upgrade,
|
|
100
|
+
query limits, and permissions. Demo operator provisioning is an explicit opt-in;
|
|
101
|
+
the supplied development configuration enables it, while normal installs do not.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""App declaration for nautobot_trax."""
|
|
2
|
+
|
|
3
|
+
from importlib import metadata
|
|
4
|
+
|
|
5
|
+
from nautobot.apps import NautobotAppConfig
|
|
6
|
+
|
|
7
|
+
__version__ = metadata.version(__name__)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class NautobotTraxConfig(NautobotAppConfig):
|
|
11
|
+
"""App configuration for the TRAX app."""
|
|
12
|
+
|
|
13
|
+
name = "nautobot_trax"
|
|
14
|
+
verbose_name = "TRAX"
|
|
15
|
+
version = __version__
|
|
16
|
+
author = "TRAX"
|
|
17
|
+
description = "TRAX mission planning app with integrated frequency management and mission domain models."
|
|
18
|
+
base_url = "nautobot-trax"
|
|
19
|
+
min_version = "3.1.8"
|
|
20
|
+
required_settings = []
|
|
21
|
+
default_settings = {
|
|
22
|
+
"enable_demo_user": False,
|
|
23
|
+
"map_storage_root": "",
|
|
24
|
+
"map_max_upload_bytes": 5 * 1024**3,
|
|
25
|
+
"map_validation_timeout": 30,
|
|
26
|
+
"map_tile_timeout": 2,
|
|
27
|
+
}
|
|
28
|
+
docs_view_name = "plugins:nautobot_trax:docs"
|
|
29
|
+
searchable_models = [
|
|
30
|
+
"operation",
|
|
31
|
+
"missionplan",
|
|
32
|
+
"missiontransportoption",
|
|
33
|
+
"frequencyband",
|
|
34
|
+
"frequency",
|
|
35
|
+
"satellite",
|
|
36
|
+
"missionfrequencyset",
|
|
37
|
+
"maptileset",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
def ready(self): # pylint: disable=import-outside-toplevel
|
|
41
|
+
"""Register post-migrate seed hook."""
|
|
42
|
+
# These imports must wait for Django's model registry to be ready.
|
|
43
|
+
# pylint: disable=import-outside-toplevel
|
|
44
|
+
super().ready()
|
|
45
|
+
|
|
46
|
+
from django.db.models.signals import post_migrate
|
|
47
|
+
|
|
48
|
+
from nautobot_trax.seed import post_migrate_seed_operator_user
|
|
49
|
+
|
|
50
|
+
post_migrate.connect(post_migrate_seed_operator_user, sender=self)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
config = NautobotTraxConfig # pylint: disable=invalid-name # Required Nautobot entry point.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""REST API module for nautobot_trax app."""
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
"""API serializers for nautobot_trax."""
|
|
2
|
+
|
|
3
|
+
from django.urls import reverse
|
|
4
|
+
from nautobot.apps.api import NautobotModelSerializer, TaggedModelSerializerMixin
|
|
5
|
+
from rest_framework import serializers
|
|
6
|
+
|
|
7
|
+
from nautobot_trax import models
|
|
8
|
+
|
|
9
|
+
# ---------------------------------------------------------------------------
|
|
10
|
+
# Frequency Management serializers
|
|
11
|
+
# ---------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class FrequencyBandSerializer(NautobotModelSerializer, TaggedModelSerializerMixin):
|
|
15
|
+
"""FrequencyBand serializer (read-only reference data)."""
|
|
16
|
+
|
|
17
|
+
class Meta:
|
|
18
|
+
"""Declare the model and fields exposed through the API."""
|
|
19
|
+
|
|
20
|
+
model = models.FrequencyBand
|
|
21
|
+
fields = [
|
|
22
|
+
"id",
|
|
23
|
+
"object_type",
|
|
24
|
+
"display",
|
|
25
|
+
"url",
|
|
26
|
+
"natural_slug",
|
|
27
|
+
"name",
|
|
28
|
+
"description",
|
|
29
|
+
"lower_frequency_mhz",
|
|
30
|
+
"upper_frequency_mhz",
|
|
31
|
+
"created",
|
|
32
|
+
"last_updated",
|
|
33
|
+
"tags",
|
|
34
|
+
"custom_fields",
|
|
35
|
+
"computed_fields",
|
|
36
|
+
"relationships",
|
|
37
|
+
]
|
|
38
|
+
read_only_fields = ["lower_frequency_mhz", "upper_frequency_mhz"]
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class SatelliteSerializer(NautobotModelSerializer, TaggedModelSerializerMixin):
|
|
42
|
+
"""Satellite serializer."""
|
|
43
|
+
|
|
44
|
+
class Meta:
|
|
45
|
+
"""Declare the model and fields exposed through the API."""
|
|
46
|
+
|
|
47
|
+
model = models.Satellite
|
|
48
|
+
fields = [
|
|
49
|
+
"id",
|
|
50
|
+
"object_type",
|
|
51
|
+
"display",
|
|
52
|
+
"url",
|
|
53
|
+
"natural_slug",
|
|
54
|
+
"name",
|
|
55
|
+
"is_geostationary",
|
|
56
|
+
"orbit",
|
|
57
|
+
"description",
|
|
58
|
+
"provider",
|
|
59
|
+
"created",
|
|
60
|
+
"last_updated",
|
|
61
|
+
"tags",
|
|
62
|
+
"notes_url",
|
|
63
|
+
"custom_fields",
|
|
64
|
+
"computed_fields",
|
|
65
|
+
"relationships",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class FrequencySetSerializer(NautobotModelSerializer, TaggedModelSerializerMixin): # pylint: disable=nb-sub-class-name
|
|
70
|
+
"""FrequencySet serializer."""
|
|
71
|
+
|
|
72
|
+
class Meta:
|
|
73
|
+
"""Declare the model and fields exposed through the API."""
|
|
74
|
+
|
|
75
|
+
model = models.MissionFrequencySet
|
|
76
|
+
fields = [
|
|
77
|
+
"id",
|
|
78
|
+
"object_type",
|
|
79
|
+
"display",
|
|
80
|
+
"url",
|
|
81
|
+
"natural_slug",
|
|
82
|
+
"name",
|
|
83
|
+
"tx_frequency_mhz",
|
|
84
|
+
"rx_frequency_mhz",
|
|
85
|
+
"tx_bandwidth_mhz",
|
|
86
|
+
"rx_bandwidth_mhz",
|
|
87
|
+
"transport_type",
|
|
88
|
+
"transport_subtype",
|
|
89
|
+
"access_method",
|
|
90
|
+
"modulation",
|
|
91
|
+
"polarization",
|
|
92
|
+
"notes",
|
|
93
|
+
"satellite",
|
|
94
|
+
"band",
|
|
95
|
+
"provider",
|
|
96
|
+
"status",
|
|
97
|
+
"tenant",
|
|
98
|
+
"created",
|
|
99
|
+
"last_updated",
|
|
100
|
+
"tags",
|
|
101
|
+
"notes_url",
|
|
102
|
+
"custom_fields",
|
|
103
|
+
"computed_fields",
|
|
104
|
+
"relationships",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
MissionFrequencySetSerializer = FrequencySetSerializer
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class FrequencySerializer(NautobotModelSerializer, TaggedModelSerializerMixin):
|
|
112
|
+
"""Frequency serializer."""
|
|
113
|
+
|
|
114
|
+
class Meta:
|
|
115
|
+
"""Declare the model and fields exposed through the API."""
|
|
116
|
+
|
|
117
|
+
model = models.Frequency
|
|
118
|
+
fields = [
|
|
119
|
+
"id",
|
|
120
|
+
"object_type",
|
|
121
|
+
"display",
|
|
122
|
+
"url",
|
|
123
|
+
"natural_slug",
|
|
124
|
+
"frequency_mhz",
|
|
125
|
+
"description",
|
|
126
|
+
"band",
|
|
127
|
+
"status",
|
|
128
|
+
"tenant",
|
|
129
|
+
"created",
|
|
130
|
+
"last_updated",
|
|
131
|
+
"tags",
|
|
132
|
+
"notes_url",
|
|
133
|
+
"custom_fields",
|
|
134
|
+
"computed_fields",
|
|
135
|
+
"relationships",
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
# ---------------------------------------------------------------------------
|
|
140
|
+
# Mission Planning serializers
|
|
141
|
+
# ---------------------------------------------------------------------------
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class MissionPlanSerializer(NautobotModelSerializer, TaggedModelSerializerMixin):
|
|
145
|
+
"""MissionPlan serializer."""
|
|
146
|
+
|
|
147
|
+
def validate(self, attrs):
|
|
148
|
+
"""Validate the final kit selections, including partial updates."""
|
|
149
|
+
tenant = attrs.get("tenant", self.instance.tenant if self.instance else None)
|
|
150
|
+
supporting_kits = attrs.get("supporting_kits")
|
|
151
|
+
if supporting_kits is None:
|
|
152
|
+
supporting_kits = self.instance.supporting_kits.all() if self.instance else []
|
|
153
|
+
if tenant and tenant in supporting_kits:
|
|
154
|
+
raise serializers.ValidationError(
|
|
155
|
+
{"supporting_kits": "Do not include the deployed kit in supporting kits."}
|
|
156
|
+
)
|
|
157
|
+
return super().validate(attrs)
|
|
158
|
+
|
|
159
|
+
class Meta:
|
|
160
|
+
"""Declare the model and fields exposed through the API."""
|
|
161
|
+
|
|
162
|
+
model = models.MissionPlan
|
|
163
|
+
fields = [
|
|
164
|
+
"id",
|
|
165
|
+
"object_type",
|
|
166
|
+
"display",
|
|
167
|
+
"url",
|
|
168
|
+
"natural_slug",
|
|
169
|
+
"mission_name",
|
|
170
|
+
"tenant",
|
|
171
|
+
"supporting_kits",
|
|
172
|
+
"status",
|
|
173
|
+
"start_date",
|
|
174
|
+
"end_date",
|
|
175
|
+
"location",
|
|
176
|
+
"deployment_mgrs",
|
|
177
|
+
"deployment_latitude",
|
|
178
|
+
"deployment_longitude",
|
|
179
|
+
"deployment_altitude_m",
|
|
180
|
+
"description",
|
|
181
|
+
"created",
|
|
182
|
+
"last_updated",
|
|
183
|
+
"tags",
|
|
184
|
+
"notes_url",
|
|
185
|
+
"custom_fields",
|
|
186
|
+
"computed_fields",
|
|
187
|
+
"relationships",
|
|
188
|
+
]
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
class OperationSerializer(NautobotModelSerializer, TaggedModelSerializerMixin):
|
|
192
|
+
"""Operation serializer."""
|
|
193
|
+
|
|
194
|
+
class Meta:
|
|
195
|
+
"""Declare the model and fields exposed through the API."""
|
|
196
|
+
|
|
197
|
+
model = models.Operation
|
|
198
|
+
fields = [
|
|
199
|
+
"id",
|
|
200
|
+
"object_type",
|
|
201
|
+
"display",
|
|
202
|
+
"url",
|
|
203
|
+
"natural_slug",
|
|
204
|
+
"name",
|
|
205
|
+
"status",
|
|
206
|
+
"start_date",
|
|
207
|
+
"end_date",
|
|
208
|
+
"poc",
|
|
209
|
+
"unit_tasked",
|
|
210
|
+
"aor",
|
|
211
|
+
"description",
|
|
212
|
+
"mission_plans",
|
|
213
|
+
"created",
|
|
214
|
+
"last_updated",
|
|
215
|
+
"tags",
|
|
216
|
+
"notes_url",
|
|
217
|
+
"custom_fields",
|
|
218
|
+
"computed_fields",
|
|
219
|
+
"relationships",
|
|
220
|
+
]
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class MissionTransportOptionSerializer(NautobotModelSerializer, TaggedModelSerializerMixin):
|
|
224
|
+
"""MissionTransportOption serializer."""
|
|
225
|
+
|
|
226
|
+
class Meta:
|
|
227
|
+
"""Declare the model and fields exposed through the API."""
|
|
228
|
+
|
|
229
|
+
model = models.MissionTransportOption
|
|
230
|
+
fields = [
|
|
231
|
+
"id",
|
|
232
|
+
"object_type",
|
|
233
|
+
"display",
|
|
234
|
+
"url",
|
|
235
|
+
"natural_slug",
|
|
236
|
+
"name",
|
|
237
|
+
"transport_type",
|
|
238
|
+
"transport_subtype",
|
|
239
|
+
"role",
|
|
240
|
+
"polarization",
|
|
241
|
+
"status",
|
|
242
|
+
"notes",
|
|
243
|
+
"mission_plan",
|
|
244
|
+
"circuit",
|
|
245
|
+
"device",
|
|
246
|
+
"provider",
|
|
247
|
+
"mission_frequency_set",
|
|
248
|
+
"satellite",
|
|
249
|
+
"created",
|
|
250
|
+
"last_updated",
|
|
251
|
+
"tags",
|
|
252
|
+
"notes_url",
|
|
253
|
+
"custom_fields",
|
|
254
|
+
"computed_fields",
|
|
255
|
+
"relationships",
|
|
256
|
+
]
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
class CommsCardSerializer(NautobotModelSerializer, TaggedModelSerializerMixin):
|
|
260
|
+
"""CommsCard serializer."""
|
|
261
|
+
|
|
262
|
+
class Meta:
|
|
263
|
+
"""Declare the model and fields exposed through the API."""
|
|
264
|
+
|
|
265
|
+
model = models.CommsCard
|
|
266
|
+
fields = [
|
|
267
|
+
"id",
|
|
268
|
+
"object_type",
|
|
269
|
+
"display",
|
|
270
|
+
"url",
|
|
271
|
+
"natural_slug",
|
|
272
|
+
"name",
|
|
273
|
+
"operation",
|
|
274
|
+
"created",
|
|
275
|
+
"last_updated",
|
|
276
|
+
"tags",
|
|
277
|
+
"notes_url",
|
|
278
|
+
"custom_fields",
|
|
279
|
+
"computed_fields",
|
|
280
|
+
"relationships",
|
|
281
|
+
]
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
class CommsCardEntrySerializer(NautobotModelSerializer, TaggedModelSerializerMixin):
|
|
285
|
+
"""CommsCardEntry serializer."""
|
|
286
|
+
|
|
287
|
+
class Meta:
|
|
288
|
+
"""Declare the model and fields exposed through the API."""
|
|
289
|
+
|
|
290
|
+
model = models.CommsCardEntry
|
|
291
|
+
fields = [
|
|
292
|
+
"id",
|
|
293
|
+
"object_type",
|
|
294
|
+
"display",
|
|
295
|
+
"url",
|
|
296
|
+
"natural_slug",
|
|
297
|
+
"channel",
|
|
298
|
+
"keymat",
|
|
299
|
+
"comms_card",
|
|
300
|
+
"frequency_set",
|
|
301
|
+
"created",
|
|
302
|
+
"last_updated",
|
|
303
|
+
"tags",
|
|
304
|
+
"notes_url",
|
|
305
|
+
"custom_fields",
|
|
306
|
+
"computed_fields",
|
|
307
|
+
"relationships",
|
|
308
|
+
]
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
# ---------------------------------------------------------------------------
|
|
312
|
+
# Operational Map serializers
|
|
313
|
+
# ---------------------------------------------------------------------------
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
class MapTileSetSerializer(NautobotModelSerializer, TaggedModelSerializerMixin):
|
|
317
|
+
"""MapTileSet serializer."""
|
|
318
|
+
|
|
319
|
+
def to_representation(self, instance):
|
|
320
|
+
"""Return the object-authorized REST download route for uploaded archives."""
|
|
321
|
+
data = super().to_representation(instance)
|
|
322
|
+
if instance.mbtiles_file:
|
|
323
|
+
url = reverse("plugins-api:nautobot_trax-api:maptileset-download", kwargs={"pk": instance.pk})
|
|
324
|
+
request = self.context.get("request")
|
|
325
|
+
data["mbtiles_file"] = request.build_absolute_uri(url) if request else url
|
|
326
|
+
return data
|
|
327
|
+
|
|
328
|
+
class Meta:
|
|
329
|
+
"""Define atlas metadata and read-only derived values."""
|
|
330
|
+
|
|
331
|
+
model = models.MapTileSet
|
|
332
|
+
fields = [
|
|
333
|
+
"id",
|
|
334
|
+
"object_type",
|
|
335
|
+
"display",
|
|
336
|
+
"url",
|
|
337
|
+
"natural_slug",
|
|
338
|
+
"name",
|
|
339
|
+
"description",
|
|
340
|
+
"mbtiles_file",
|
|
341
|
+
"is_active",
|
|
342
|
+
"tile_format",
|
|
343
|
+
"attribution",
|
|
344
|
+
"min_zoom",
|
|
345
|
+
"max_zoom",
|
|
346
|
+
"zoom_levels",
|
|
347
|
+
"bounds_west",
|
|
348
|
+
"bounds_south",
|
|
349
|
+
"bounds_east",
|
|
350
|
+
"bounds_north",
|
|
351
|
+
"created",
|
|
352
|
+
"last_updated",
|
|
353
|
+
"tags",
|
|
354
|
+
"custom_fields",
|
|
355
|
+
"computed_fields",
|
|
356
|
+
"relationships",
|
|
357
|
+
]
|
|
358
|
+
read_only_fields = [
|
|
359
|
+
"tile_format",
|
|
360
|
+
"attribution",
|
|
361
|
+
"min_zoom",
|
|
362
|
+
"max_zoom",
|
|
363
|
+
"zoom_levels",
|
|
364
|
+
"bounds_west",
|
|
365
|
+
"bounds_south",
|
|
366
|
+
"bounds_east",
|
|
367
|
+
"bounds_north",
|
|
368
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Django API urlpatterns declaration for nautobot_trax app."""
|
|
2
|
+
|
|
3
|
+
from nautobot.apps.api import OrderedDefaultRouter
|
|
4
|
+
|
|
5
|
+
from nautobot_trax.api import views
|
|
6
|
+
|
|
7
|
+
router = OrderedDefaultRouter()
|
|
8
|
+
router.register("frequency-bands", views.FrequencyBandViewSet)
|
|
9
|
+
router.register("frequencies", views.FrequencyViewSet)
|
|
10
|
+
router.register("satellites", views.SatelliteViewSet)
|
|
11
|
+
router.register("frequency-sets", views.FrequencySetViewSet)
|
|
12
|
+
router.register("operations", views.OperationViewSet)
|
|
13
|
+
router.register("mission-plans", views.MissionPlanViewSet)
|
|
14
|
+
router.register("mission-transport-options", views.MissionTransportOptionViewSet)
|
|
15
|
+
router.register("comms-cards", views.CommsCardViewSet)
|
|
16
|
+
router.register("comms-card-entries", views.CommsCardEntryViewSet)
|
|
17
|
+
router.register("map-tile-sets", views.MapTileSetViewSet)
|
|
18
|
+
|
|
19
|
+
app_name = "nautobot_trax-api"
|
|
20
|
+
urlpatterns = router.urls
|