update netbox-docker config

This commit is contained in:
ryanmerolle 2023-01-23 12:59:40 +00:00
parent d0bee1277b
commit 9c6c570fa2
55 changed files with 44 additions and 967 deletions

View File

@ -10,37 +10,53 @@ services:
#- netbox-worker
env_file: env/netbox.env
user: 'unit:root'
healthcheck:
start_period: 60s
timeout: 3s
interval: 15s
test: "curl -f http://localhost:8080/api/ || exit 1"
volumes:
- ./initializers:/opt/netbox/initializers:z,ro
- ./configuration:/etc/netbox/config:z,ro
#- ./reports:/etc/netbox/reports:z,ro
#- ./scripts:/etc/netbox/scripts:z,ro
#- netbox-media-files:/opt/netbox/netbox/media:z
#netbox-worker:
# <<: *netbox
# depends_on:
# - redis
# - postgres
# netbox:
# condition: service_healthy
# command:
# - /opt/netbox/venv/bin/python
# - /opt/netbox/netbox/manage.py
# - rqworker
# healthcheck:
# start_period: 20s
# timeout: 3s
# interval: 15s
# test: "ps -aux | grep -v grep | grep -q rqworker || exit 1"
#netbox-housekeeping:
# <<: *netbox
# depends_on:
# - redis
# - postgres
# netbox:
# condition: service_healthy
# command:
# - /opt/netbox/housekeeping.sh
# healthcheck:
# start_period: 20s
# timeout: 3s
# interval: 15s
# test: "ps -aux | grep -v grep | grep -q housekeeping || exit 1"
# postgres
postgres:
image: postgres:14-alpine
image: postgres:15-alpine
env_file: env/postgres.env
volumes:
- netbox-postgres-data:/var/lib/postgresql/data
# redis
redis:
image: redis:6-alpine
image: redis:7-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
@ -49,12 +65,14 @@ services:
#volumes:
# - netbox-redis-data:/data
#redis-cache:
# image: redis:6-alpine
# image: redis:7-alpine
# command:
# - sh
# - -c # this is to evaluate the $REDIS_PASSWORD from the env
# - redis-server --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
# env_file: env/redis-cache.env
# volumes:
# - netbox-redis-cache-data:/data
volumes:
#netbox-media-files:
@ -63,3 +81,5 @@ volumes:
driver: local
#netbox-redis-data:
# driver: local
#netbox-redis-cache-data:
# driver: local

View File

@ -1,8 +0,0 @@
---
- prefix: 10.0.0.0/16
rir: RFC1918
tenant: tenant1
- prefix: fd00:ccdd::/32
rir: RFC4193 ULA
- prefix: 2001:db8::/32
rir: RFC3849

View File

@ -1,8 +0,0 @@
---
- asn: 1
rir: RFC1918
tenant: tenant1
- asn: 2
rir: RFC4193 ULA
- asn: 3
rir: RFC3849

View File

@ -1,72 +0,0 @@
---
# Required parameters for termination X ('a' or 'b'):
#
# ```
# termination_x_name -> name of interface
# termination_x_device -> name of the device interface belongs to
# termination_x_class -> required if different from 'Interface' which is the default
# ```
#
# Supported termination classes: Interface, ConsolePort, ConsoleServerPort, FrontPort, RearPort, PowerPort, PowerOutlet
#
#
# If a termination is a circuit then the required parameter is termination_x_circuit.
# Required parameters for a circuit termination:
#
# ```
# termination_x_circuit:
# term_side -> termination side of a circuit. Must be A or B
# cid -> circuit ID value
# site OR provider_network -> name of Site or ProviderNetwork respectively. If both provided, Site takes precedence
# ```
#
# If a termination is a power feed then the required parameter is termination_x_feed.
#
# ```
# termination_x_feed:
# name -> name of the PowerFeed object
# power_panel:
# name -> name of the PowerPanel the PowerFeed is attached to
# site -> name of the Site in which the PowerPanel is present
# ```
#
# Any other Cable parameters supported by Netbox are supported as the top level keys, e.g. 'type', 'status', etc.
#
# - termination_a_name: console
# termination_a_device: spine
# termination_a_class: ConsolePort
# termination_b_name: tty9
# termination_b_device: console-server
# termination_b_class: ConsoleServerPort
# type: cat6
#
- termination_a_name: to-server02
termination_a_device: server01
termination_b_name: to-server01
termination_b_device: server02
status: planned
type: mmf
- termination_a_name: eth0
termination_a_device: server02
termination_b_circuit:
term_side: A
cid: Circuit_ID-1
site: AMS 1
type: cat6
- termination_a_name: psu0
termination_a_device: server04
termination_a_class: PowerPort
termination_b_feed:
name: power feed 1
power_panel:
name: power panel AMS 1
site: AMS 1
- termination_a_name: outlet1
termination_a_device: server04
termination_a_class: PowerOutlet
termination_b_name: psu1
termination_b_device: server04
termination_b_class: PowerPort

View File

@ -1,7 +0,0 @@
---
- name: VPLS
slug: vpls
- name: MPLS
slug: mpls
- name: Internet
slug: internet

View File

@ -1,8 +0,0 @@
---
- cid: Circuit_ID-1
provider: Provider1
type: Internet
tenant: tenant1
- cid: Circuit_ID-2
provider: Provider2
type: MPLS

View File

@ -1,5 +0,0 @@
---
- name: Group 1
slug: group-1
- name: Group 2
slug: group-2

View File

@ -1,3 +0,0 @@
---
- name: Hyper-V
slug: hyper-v

View File

@ -1,8 +0,0 @@
---
- name: cluster1
type: Hyper-V
group: Group 1
tenant: tenant1
- name: cluster2
type: Hyper-V
site: SING 1

View File

@ -1,8 +0,0 @@
---
- name: Network-Team
slug: network-team
description: This is a new contact group for the Network-Team
- name: New Contact Group
slug: new-contact-group
description: This is a new contact group sub under of Network-Team
parent: Network-Team

View File

@ -1,4 +0,0 @@
---
- name: New Contact Role
slug: new-contact-role
description: This is a new contact role description

View File

@ -1,21 +0,0 @@
---
- name: Lee Widget
title: CEO of Widget Corp
phone: 221-555-1212
email: widgetCEO@widgetcorp.com
address: 1200 Nowhere Blvd, Scranton NJ, 555111
comments: This is a very important contact
- name: Ali Gator
group: Network-Team
title: Consultant for Widget Corp
phone: 221-555-1213
email: Consultant@widgetcorp.com
address: 1200 Nowhere Blvd, Scranton NJ, 555111
comments: This is a very important contact
- name: Karlchen Maier
group: New Contact Group
title: COO of Widget Corp
phone: 221-555-1214
email: Karlchen@widgetcorp.com
address: 1200 Nowhere Blvd, Scranton NJ, 555111
comments: This is a very important contact

View File

@ -1,118 +0,0 @@
---
## Possible Choices:
## type:
## - text
## - integer
## - boolean
## - date
## - url
## - select
## - multiselect
## - object
## - multiobject
## filter_logic:
## - disabled
## - loose
## - exact
##
## Examples:
text_field:
type: text
label: Custom Text
description: Enter text in a text field.
required: false
weight: 0
on_objects:
- dcim.models.Device
- dcim.models.Rack
- dcim.models.Site
- dcim.models.DeviceType
- ipam.models.IPAddress
- ipam.models.Prefix
- tenancy.models.Tenant
- virtualization.models.VirtualMachine
integer_field:
type: integer
label: Custom Number
description: Enter numbers into an integer field.
required: true
filter_logic: loose
validation_minimum: 0
validation_maximum: 255
weight: 10
on_objects:
- tenancy.models.Tenant
select_field:
type: select
label: Choose between items
required: false
filter_logic: exact
weight: 30
default: First Item
on_objects:
- dcim.models.Device
choices:
- First Item
- Second Item
- Third Item
- Fifth Item
- Fourth Item
select_field_legacy_format:
type: select
label: Choose between items
required: false
filter_logic: loose
weight: 30
on_objects:
- dcim.models.Device
choices:
- value: A # this is the deprecated format.
- value: B # we only use it for the tests.
- value: C # please see above for the new format.
- value: "D like deprecated"
weight: 999
- value: E
boolean_field:
type: boolean
label: Yes Or No?
required: true
filter_logic: loose
default: "false" # important: put "false" in quotes!
weight: 90
on_objects:
- dcim.models.Device
url_field:
type: url
label: Hyperlink
description: Link to something nice.
required: true
filter_logic: disabled
validation_regex: ^https://
on_objects:
- tenancy.models.Tenant
date_field:
type: date
label: Important Date
required: false
filter_logic: disabled
on_objects:
- dcim.models.Device
multiobject_field:
type: multiobject
label: Related Objects
description: IP addresses that belong to this location
required: true
filter_logic: loose
on_objects:
- dcim.models.Location
object_type: ipam.models.IPAddress
object_field:
type: object
label: ASN
description: This device has an ASN now
required: false
filter_logic: loose
on_objects:
- dcim.models.Device
object_type: ipam.models.ASN

View File

@ -1,22 +0,0 @@
---
## Possible Choices:
## new_window:
## - True
## - False
## content_type:
## - device
## - site
## - any-other-content-type
##
## Examples:
- name: link_to_repo
link_text: 'Link to Netbox Docker'
link_url: 'https://github.com/netbox-community/netbox-docker'
new_window: False
content_type: device
- name: link_to_localhost
link_text: 'Link to localhost'
link_url: 'http://localhost'
new_window: True
content_type: device

View File

@ -1,16 +0,0 @@
---
- name: switch
slug: switch
color: Grey
- name: router
slug: router
color: Cyan
- name: load-balancer
slug: load-balancer
color: Red
- name: server
slug: server
color: Blue
- name: patchpanel
slug: patchpanel
color: Black

View File

@ -1,58 +0,0 @@
---
- model: Model 1
manufacturer: Manufacturer 1
slug: model-1
u_height: 2
custom_field_data:
text_field: Description
- model: Model 2
manufacturer: Manufacturer 1
slug: model-2
custom_field_data:
text_field: Description
- model: Model 3
manufacturer: Manufacturer 1
slug: model-3
is_full_depth: false
u_height: 0
custom_field_data:
text_field: Description
- model: Other
manufacturer: No Name
slug: other
custom_field_data:
text_field: Description
interfaces:
- name: eth0
type: 1000base-t
mgmt_only: True
- name: eth1
type: 1000base-t
console_server_ports:
- name_template: ttyS[1-48]
type: rj-45
power_ports:
- name_template: psu[0,1]
type: iec-60320-c14
maximum_draw: 35
allocated_draw: 35
front_ports:
- name_template: front[1,2]
type: 8p8c
rear_port_template: rear[0,1]
rear_port_position_template: "[1,2]"
rear_ports:
- name_template: rear[0,1]
type: 8p8c
positions_template: "[3,2]"
device_bays:
- name: bay0 # both non-template and template field specified; non-template field takes precedence
name_template: bay[0-9]
label: test0
label_template: test[0-5,9,6-8]
description: Test description
power_outlets:
- name_template: outlet[0,1]
type: iec-60320-c5
power_port: psu0
feed_leg: B

View File

@ -1,54 +0,0 @@
---
## Possible Choices:
## face:
## - front
## - rear
## status:
## - offline
## - active
## - planned
## - staged
## - failed
## - inventory
## - decommissioning
##
## Examples:
- name: server01
device_role: server
device_type: Other
site: AMS 1
rack: rack-01
face: front
position: 1
custom_field_data:
text_field: Description
- name: server02
device_role: server
device_type: Other
site: AMS 2
rack: rack-02
face: front
position: 2
primary_ip4: 10.1.1.2/24
primary_ip6: 2001:db8:a000:1::2/64
custom_field_data:
text_field: Description
- name: server03
device_role: server
device_type: Other
site: SING 1
rack: rack-03
face: front
position: 3
custom_field_data:
text_field: Description
- name: server04
device_role: server
device_type: Other
site: SING 1
location: cage 101
face: front
position: 3
custom_field_data:
text_field: Description

View File

@ -1,10 +0,0 @@
---
applications:
users:
- technical_user
readers:
users:
- reader
writers:
users:
- writer

View File

@ -1,36 +0,0 @@
---
## Possible Choices:
## type:
## - virtual
## - lag
## - 1000base-t
## - ... and many more. See for yourself:
## https://github.com/netbox-community/netbox/blob/295d4f0394b431351c0cb2c3ecc791df68c6c2fb/netbox/dcim/choices.py#L510
##
## Examples:
- device: server01
name: ath0
type: 1000base-t
lag: ae0
bridge: br0
- device: server01
name: ath1
type: 1000base-t
parent: ath0
- device: server01
enabled: true
type: 1000base-x-sfp
name: to-server02
- device: server02
enabled: true
type: 1000base-x-sfp
name: to-server01
- device: server02
enabled: true
type: 1000base-t
name: eth0
- device: server02
enabled: true
type: virtual
name: loopback

View File

@ -1,45 +0,0 @@
---
## Possible Choices:
## status:
## - active
## - reserved
## - deprecated
## - dhcp
## role:
## - loopback
## - secondary
## - anycast
## - vip
## - vrrp
## - hsrp
## - glbp
## - carp
##
## Examples:
- address: 10.1.1.1/24
device: server01
interface: to-server02
status: active
vrf: vrf1
- address: 2001:db8:a000:1::1/64
device: server01
interface: to-server02
status: active
vrf: vrf1
- address: 10.1.1.2/24
device: server02
interface: to-server01
status: active
- address: 2001:db8:a000:1::2/64
device: server02
interface: to-server01
status: active
- address: 10.1.1.10/24
description: reserved IP
status: reserved
tenant: tenant1
- address: 2001:db8:a000:1::10/64
description: reserved IP
status: reserved
tenant: tenant1

View File

@ -1,4 +0,0 @@
---
- name: cage 101
slug: cage-101
site: SING 1

View File

@ -1,7 +0,0 @@
---
- name: Manufacturer 1
slug: manufacturer-1
- name: Manufacturer 2
slug: manufacturer-2
- name: No Name
slug: no-name

View File

@ -1,61 +0,0 @@
---
all.ro:
actions:
- view
description: 'Read Only for All Objects'
enabled: true
groups:
- applications
- readers
object_types: all
users:
- jdoe
all.rw:
actions:
- add
- change
- delete
- view
description: 'Read/Write for All Objects'
enabled: true
groups:
- writers
object_types: all
network_team.rw:
actions:
- add
- change
- delete
- view
description: "Network Team Permissions"
enabled: true
object_types:
circuits:
- circuit
- circuittermination
- circuittype
- provider
dcim: all
ipam:
- aggregate
- ipaddress
- prefix
- rir
- role
- routetarget
- service
- vlan
- vlangroup
- vrf
vips.change:
actions:
- change
description: "Update VIP object permission"
enabled: true
object_types:
ipam:
- ipaddress
groups:
- devops
constraints:
role: vip

View File

@ -1,16 +0,0 @@
---
- name: Platform 1
slug: platform-1
manufacturer: Manufacturer 1
napalm_driver: driver1
napalm_args: "{'arg1': 'value1', 'arg2': 'value2'}"
- name: Platform 2
slug: platform-2
manufacturer: Manufacturer 2
napalm_driver: driver2
napalm_args: "{'arg1': 'value1', 'arg2': 'value2'}"
- name: Platform 3
slug: platform-3
manufacturer: No Name
napalm_driver: driver3
napalm_args: "{'arg1': 'value1', 'arg2': 'value2'}"

View File

@ -1,15 +0,0 @@
---
- name: power feed 1
power_panel: power panel AMS 1
voltage: 208
amperage: 50
max_utilization: 80
phase: Single phase
rack: rack-01
- name: power feed 2
power_panel: power panel SING 1
voltage: 208
amperage: 50
max_utilization: 80
phase: Three-phase
rack: rack-03

View File

@ -1,6 +0,0 @@
---
- name: power panel AMS 1
site: AMS 1
- name: power panel SING 1
site: SING 1
location: cage 101

View File

@ -1,3 +0,0 @@
---
- name: Main Management
slug: main-management

View File

@ -1,30 +0,0 @@
---
## Possible Choices:
## status:
## - container
## - active
## - reserved
## - deprecated
##
## Examples:
- description: prefix1
prefix: 10.1.1.0/24
site: AMS 1
status: active
tenant: tenant1
vlan: vlan1
- description: prefix2
prefix: 10.1.2.0/24
site: AMS 2
status: active
tenant: tenant2
vlan: vlan2
is_pool: true
vrf: vrf2
- description: ipv6 prefix1
prefix: 2001:db8:a000:1::/64
site: AMS 2
status: active
tenant: tenant2
vlan: vlan2

View File

@ -1,7 +0,0 @@
---
- name: Provider1
slug: provider1
asn: 121
- name: Provider2
slug: provider2
asn: 122

View File

@ -1,13 +0,0 @@
---
- name: Role 1
slug: role-1
color: Pink
- name: Role 2
slug: role-2
color: Cyan
- name: Role 3
slug: role-3
color: Grey
- name: Role 4
slug: role-4
color: Teal

View File

@ -1,42 +0,0 @@
---
## Possible Choices:
## width:
## - 19
## - 23
## types:
## - 2-post-frame
## - 4-post-frame
## - 4-post-cabinet
## - wall-frame
## - wall-cabinet
## outer_unit:
## - mm
## - in
##
## Examples:
- site: AMS 1
name: rack-01
role: Role 1
type: 4-post-cabinet
width: 19
u_height: 47
custom_field_data:
text_field: Description
- site: AMS 2
name: rack-02
role: Role 2
type: 4-post-cabinet
width: 19
u_height: 47
custom_field_data:
text_field: Description
- site: SING 1
name: rack-03
location: cage 101
role: Role 3
type: 4-post-cabinet
width: 19
u_height: 47
custom_field_data:
text_field: Description

View File

@ -1,11 +0,0 @@
---
- name: Singapore
slug: singapore
- name: Amsterdam
slug: amsterdam
- name: Downtown
slug: downtown
parent: Amsterdam
- name: Suburbs
slug: suburbs
parent: Amsterdam

View File

@ -1,10 +0,0 @@
---
- is_private: true
name: RFC1918
slug: rfc1918
- is_private: true
name: RFC4193 ULA
slug: rfc4193-ula
- is_private: true
name: RFC3849
slug: rfc3849

View File

@ -1,4 +0,0 @@
---
- name: 65000:1001
tenant: tenant1
- name: 65000:1002

View File

@ -1,16 +0,0 @@
---
- name: DNS
protocol: TCP
ports:
- 53
virtual_machine: virtual machine 1
- name: DNS
protocol: UDP
ports:
- 53
virtual_machine: virtual machine 1
- name: MISC
protocol: UDP
ports:
- 4000
device: server01

View File

@ -1,31 +0,0 @@
---
- name: AMS 1
slug: ams1
region: Downtown
status: active
facility: Amsterdam 1
custom_field_data:
text_field: Description for AMS1
- name: AMS 2
slug: ams2
region: Downtown
status: active
facility: Amsterdam 2
custom_field_data:
text_field: Description for AMS2
- name: AMS 3
slug: ams3
region: Suburbs
status: active
facility: Amsterdam 3
tenant: tenant1
custom_field_data:
text_field: Description for AMS3
- name: SING 1
slug: sing1
region: Singapore
status: active
facility: Singapore 1
tenant: tenant2
custom_field_data:
text_field: Description for SING1

View File

@ -1,13 +0,0 @@
---
- name: Tag 1
slug: tag-1
color: Pink
- name: Tag 2
slug: tag-2
color: Cyan
- name: Tag 3
slug: tag-3
color: Grey
- name: Tag 4
slug: tag-4
color: Teal

View File

@ -1,5 +0,0 @@
---
- name: Tenant Group 1
slug: tenant-group-1
- name: Tenant Group 2
slug: tenant-group-2

View File

@ -1,6 +0,0 @@
---
- name: tenant1
slug: tenant1
- name: tenant2
slug: tenant2
group: Tenant Group 2

View File

@ -1,13 +0,0 @@
---
technical_user:
api_token: "" # a token is generated automatically unless the value is explicity set to empty
reader:
api_token: "" # a token is generated automatically unless the value is explicity set to empty
writer:
api_token: "" # a token is generated automatically unless the value is explicity set to empty
jdoe:
first_name: John
last_name: Doe
is_active: True
is_superuser: False
is_staff: False

View File

@ -1,29 +0,0 @@
---
## Possible Choices:
## status:
## - active
## - offline
## - staged
##
## Examples:
- cluster: cluster1
comments: VM1
disk: 200
memory: 4096
name: virtual machine 1
platform: Platform 2
status: active
tenant: tenant1
vcpus: 8
- cluster: cluster1
comments: VM2
disk: 100
memory: 2048
name: virtual machine 2
platform: Platform 2
primary_ip4: 10.1.1.10/24
primary_ip6: 2001:db8:a000:1::10/64
status: active
tenant: tenant1
vcpus: 8

View File

@ -1,13 +0,0 @@
---
- description: Network Interface 1
enabled: true
mac_address: 00:77:77:77:77:77
mtu: 1500
name: Network Interface 1
virtual_machine: virtual machine 1
- description: Network Interface 2
enabled: true
mac_address: 00:55:55:55:55:55
mtu: 1500
name: Network Interface 2
virtual_machine: virtual machine 1

View File

@ -1,25 +0,0 @@
---
- name: VLAN group 1
scope_type: dcim.region
scope: Amsterdam
slug: vlan-group-1
- name: VLAN group 2
scope_type: dcim.site
scope: AMS 1
slug: vlan-group-2
- name: VLAN group 3
scope_type: dcim.location
scope: cage 101
slug: vlan-group-3
- name: VLAN group 4
scope_type: dcim.rack
scope: rack-01
slug: vlan-group-4
- name: VLAN group 5
scope_type: virtualization.cluster
scope: cluster1
slug: vlan-group-5
- name: VLAN group 6
scope_type: virtualization.clustergroup
scope: Group 1
slug: vlan-group-6

View File

@ -1,20 +0,0 @@
---
## Possible Choices:
## status:
## - active
## - reserved
## - deprecated
##
## Examples:
- name: vlan1
site: AMS 1
status: active
vid: 5
role: Main Management
description: VLAN 5 for MGMT
- group: VLAN group 2
name: vlan2
site: AMS 1
status: active
vid: 1300

View File

@ -1,9 +0,0 @@
---
- enforce_unique: true
name: vrf1
tenant: tenant1
description: main VRF
- enforce_unique: true
name: vrf2
rd: "6500:6500"
tenant: tenant2

View File

@ -1,28 +0,0 @@
---
## Possible Choices:
## object_types:
## - device
## - site
## - any-other-content-type
## types:
## - type_create
## - type_update
## - type_delete
## Examples:
- name: device_creation
payload_url: 'http://localhost:8080'
object_types:
- device
- cable
type_create: True
- name: device_update
payload_url: 'http://localhost:8080'
object_types:
- device
type_update: True
- name: device_delete
payload_url: 'http://localhost:8080'
object_types:
- device
type_delete: True

View File

@ -1,7 +1,8 @@
PLUGIN_NAME=netbox_acls
REPO_PATH=/opt/netbox/netbox/netbox-acls
VENV_PY_PATH=/opt/netbox/venv/bin/python3
NETBOX_MANAGE_PATH=/opt/netbox/netbox/manage.py
NETBOX_MANAGE_PATH=/opt/netbox/netbox
NETBOX_INITIALIZER_PATH=${NETBOX_MANAGE_PATH}/netbox_initializers/
VERFILE=./version.py
.PHONY: help ## Display help message
@ -26,7 +27,7 @@ help:
.PHONY: nbshell ## Run nbshell
nbshell:
${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} nbshell
${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py nbshell
from netbox_acls.models import *
.PHONY: setup ## Copy plugin settings. Setup NetBox plugin.
@ -36,27 +37,31 @@ setup:
.PHONY: example_initializers ## Run initializers
example_initializers:
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} copy_initializers_examples --path /opt/netbox/netbox/netbox-acls/.devcontainer/initializers
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py copy_initializers_examples --path /opt/netbox/netbox/netbox-acls/.devcontainer/initializers
.PHONY: load_initializers ## Run initializers
load_initializers:
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} load_initializer_data --path /opt/netbox/netbox/netbox-acls/.devcontainer/initializers
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py load_initializer_data --path /opt/netbox/netbox/netbox-acls/.devcontainer/initializers
.PHONY: makemigrations ## Run makemigrations
makemigrations:
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} makemigrations --name ${PLUGIN_NAME}
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py makemigrations --name ${PLUGIN_NAME}
.PHONY: migrate ## Run migrate
migrate:
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} migrate
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py migrate
.PHONY: collectstatic
collectstatic:
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} collectstatic --no-input
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py collectstatic --no-input
.PHONY: initializers
initializers:
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} load_initializer_data --path /opt/netbox/netbox/netbox-acls/.devcontainer/initializers
-rm -rf ${NETBOX_INITIALIZER_PATH}
-mkdir ${NETBOX_INITIALIZER_PATH}
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py copy_initializers_examples --path ${NETBOX_INITIALIZER_PATH}
-for file in ${NETBOX_INITIALIZER_PATH}/*.yml; do sed -i "s/^# //g" "$$file"; done
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py load_initializer_data --path ${NETBOX_INITIALIZER_PATH}
.PHONY: start ## Start NetBox
start:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 360 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 437 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 386 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 330 KiB