Merge pull request #3423 from netbox-community/3415-custom-scripts

Add custom scripting
This commit is contained in:
Jeremy Stretch
2019-08-26 14:06:22 -04:00
committed by GitHub
21 changed files with 1095 additions and 5 deletions

View File

@@ -826,6 +826,21 @@ class ConfigContextModel(models.Model):
return data
#
# Custom scripts
#
class Script(models.Model):
"""
Dummy model used to generate permissions for custom scripts. Does not exist in the database.
"""
class Meta:
managed = False
permissions = (
('run_script', 'Can run script'),
)
#
# Report results
#