noc.main.models.refbook

Module Contents

class noc.main.models.refbook.RefBook

Bases: noc.core.model.base.NOCModel

Reference Books

class Meta

Bases: object

app_label = main
verbose_name = Ref Book
verbose_name_plural = Ref Books
name
language
description
is_enabled
is_builtin
downloader
download_url
last_updated
next_update
refresh_interval

Check refbook has at least one searchable field

fields

Get fields names sorted by order

__str__(self)
add_record(self, data)

Add new record :param data: Hash of field name -> value :type data: Dict

flush_refbook(self)

Delete all records in ref. book

bulk_upload(self, data)

Bulk upload data to ref. book

Parameters:data (List) – List of hashes field name -> value
download(self)

Download refbook