Commit Graph

116 Commits

Author SHA1 Message Date
Uwe Grawert ce8db1065d Fix some small typos in startup_scripts
- group creation prints proper group name
  - permission creation prints proper permission name
2021-10-25 14:36:37 +02:00
Tobias Genannt 2b4c058af8 Set filter_logic from YAML file 2021-10-21 17:06:24 +02:00
Jelizaveta Lemeševa 057728b774 Allow sites to be initialized with tenants 2021-05-28 11:26:34 +03:00
Tobias Genannt e2cc9386fb Secrets are removed in Netbox 2.12 2021-05-18 09:32:48 +02:00
Tobias Genannt fd55ec220c
Merge pull request #497 from ryanmerolle/startup-scripts-2.10+
user, group, & permissions fix
2021-04-27 09:05:14 +02:00
ryanmerolle 1f3d9463f9 apply black formating to all startup_scripts 2021-04-26 10:26:10 -04:00
ryanmerolle 8678ad92ce update permission user & group lookup as suggested 2021-04-26 09:17:25 -04:00
ryanmerolle 474ca9e78f fully working object permissions 2021-04-25 16:31:50 -04:00
ryanmerolle 12401f2a3f correct black formatting for object_permissions.py 2021-04-25 12:13:27 -04:00
ryanmerolle 528bc17eb8 correct flake8 in object_permissions.py 2021-04-25 11:59:13 -04:00
ryanmerolle 4e31218ce6 update object permission conditionals 2021-04-25 11:15:46 -04:00
ryanmerolle a1e0c52825 revert startup scripts to use key for object name 2021-04-24 10:41:06 -04:00
ryanmerolle 744ed91e2a permissions script cleanup 2021-04-21 12:33:35 -04:00
ryanmerolle b1bcfcbc4e fix isort on groups & permissions scripts 2021-04-21 08:27:20 -04:00
ryanmerolle a7a5d13637 updated given linting feedback 2021-04-20 18:05:47 -04:00
ryanmerolle 5d4ecb7f9e user, group, & permissions fix 2021-04-20 17:47:49 -04:00
Tobias Genannt c7df608696
Merge pull request #485 from tobiasge/prepare-2.11
Initializer updates for Netbox 2.11
2021-04-16 20:00:35 +02:00
Tobias Genannt 752f592e58
Fixed Python f-string
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
2021-04-13 15:50:23 +02:00
Tobias Genannt f637de88f0 Improved error logging 2021-04-13 14:38:52 +02:00
Tobias Genannt 9874cef369 VLAN Groups can be scoped to multiple types 2021-04-07 15:18:33 +02:00
Tobias Genannt 1c4b6741ac Fixed isort issues 2021-04-07 11:01:01 +02:00
Tobias Genannt 45824ba4f3 Devices can be added to locations 2021-04-07 09:57:59 +02:00
Tobias Genannt 5944086435 Rack groups have been renamed to locations 2021-04-07 09:40:58 +02:00
Marcus Crane a2e33c166d
Fix link name reference if content type is invalid
Currently, the name of a custom link is referenced
as if it is an object attribute which causes a break
due to it actually being a dictionary.

This minor change means that the startup script won't
*ahem* fail upon failing :)

Signed-Off-by: Marcus Crane <marcus.crane@daimler.com>
2021-04-01 18:48:13 +13:00
Christian Mäder 493fc60401 Use black as formatter for python files 2021-02-08 18:24:29 +01:00
Christian Mäder 16ae063321 Adjust to repository standards 2021-02-08 10:36:50 +01:00
Schylar Utley e4e2c788a9 Update 290_webhooks.py
Move to a more standard method of object handling
2021-02-08 10:09:55 +01:00
Schylar Utley f88f4e1579 Update startup_scripts/290_webhooks.py
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
2021-02-08 10:09:55 +01:00
Schylar Utley 95f4d7856a Update startup_scripts/280_custom_links.py
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
2021-02-08 10:09:55 +01:00
Schylar Utley 07a0b1d7ef Update startup_scripts/280_custom_links.py
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
2021-02-08 10:09:55 +01:00
Schylar Utley fe811f37bd replace loop with list comprehension 2021-02-08 10:09:55 +01:00
Schylar Utleye 8321449cc0 add icons to help messages 2021-02-08 10:09:55 +01:00
Schylar Utleye 618feff63a add error handling for webhook and custom links. fix initializer comments 2021-02-08 10:09:55 +01:00
Schylar Utleye a3cf645dc5 fix webhook initializer yaml and webhook startup script to work with latest netbox release 2021-02-08 10:09:55 +01:00
Schylar Utleye 7112a88359 add webhook initializer 2021-02-08 10:09:54 +01:00
Schylar Utleye 187ae4b2a1 add custom link initializers 2021-02-08 10:09:54 +01:00
Schylar Utley a0f7737916 rebase and fix script order 2021-01-20 09:03:04 +01:00
Schylar Utley 7f8cc76af6 address issue #365 2021-01-20 09:03:04 +01:00
Christian Mäder 21bd7f426c
Merge pull request #393 from MajesticFalcon/vm_init_bug
Bugfix - Allow primary device IP without virtual machine initialization
2021-01-20 08:54:13 +01:00
Schylar Utley 385c66e30d
Update startup_scripts/270_primary_ips.py
Ah, of course.. I would agree. :)

Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
2021-01-19 12:54:52 -06:00
Schylar Utley 584566b0f0 allow simultaneous virtual machine and device primary ip initialization 2021-01-15 23:44:10 -06:00
Schylar Utley 5399f8c890 Update 270_primary_ips.py
fix issue where user has no virtual machines defined, but startup script still tries to iterate over empty file.
2021-01-15 23:42:26 -06:00
ryanmerolle 2372c1eeff remove site from power_feeds 2021-01-15 15:02:01 -05:00
ryanmerolle 788aeacd9b correct missing required sites in power_feeds 2021-01-15 14:25:42 -05:00
ryanmerolle 94509f86d7 added route_targets startup_script 2020-12-30 19:11:09 -05:00
ryanmerolle 818266ace1 added services startup_script 2020-12-30 19:10:46 -05:00
ryanmerolle dfb0327340 Added power startup_scripts 2020-12-30 19:10:30 -05:00
ryanmerolle 8d8c58df54 optional assoc to cluster & circuit startup_script 2020-12-30 19:09:08 -05:00
ryanmerolle cbaaffc589 add extra space after ▶️ to remove text overlap 2020-12-30 18:23:12 -05:00
ryanmerolle 0f1cc9eea0 add tenant to aggregate startup_script 2020-12-30 18:22:12 -05:00