noc.commands.script

Module Contents

class noc.commands.script.Command

Bases: noc.core.management.base.BaseCommand

rx_arg
add_arguments(self, parser)
handle(self, script, object_name, arguments, pretty, yaml_o, use_snmp, access_preference, update_spec, beef_output, *args, **options)
get_object(self, object_name)

Resolve object by name or by id

get_credentials(self, obj)

Returns object’s credentials

get_script_args(self, arguments)

Parse arguments and return script’s

update_spec(self, name, script, save=True)

Update named spec :param name: Spec name :param script: BaseScript instance :param save: :return:

class noc.commands.script.ServiceStub(pool)

Bases: object

class ServiceConfig(pool, tos=None)

Bases: object

class noc.commands.script.PoolStub(name)

Bases: object

class noc.commands.script.ProfileStub(name)

Bases: object

class noc.commands.script.VendorStub(name)

Bases: object

class noc.commands.script.PlatformStub(name)

Bases: object

class noc.commands.script.VersionStub(version)

Bases: object

class noc.commands.script.JSONObject(path)

Bases: object

credentials
get_caps(self)
get_access_preference(self)
class noc.commands.script.StorageStub(url)

Bases: object

open_fs(self)