noc.sa.models.commandsnippet

Module Contents

class noc.sa.models.commandsnippet.CommandSnippet

Bases: noc.core.model.base.NOCModel

Command snippet

class Meta

Bases: object

verbose_name
verbose_name_plural
db_table = sa_commandsnippet
app_label = sa
ordering = ['name']
name
description
snippet
change_configuration
selector
is_enabled
timeout
require_confirmation
ignore_cli_errors
permission_name
display_in_menu
tags
rx_var
rx_vartag
vars

Variables used in snippet. Returns dict name -> {type: , required: }

effective_permission_name
__str__(self)
get_absolute_url(self)
expand(self, data)

Expand snippet with variables

save(self, *args, **kwargs)