noc.core.whois

Module Contents

noc.core.whois.logger
class noc.core.whois.WhoisCacheLoader(use_ripe=config.peer.enable_ripe, use_arin=config.peer.enable_arin, use_radb=config.peer.enable_radb)

Bases: object

RIPE_AS_SET_MEMBERS = https://ftp.ripe.net/ripe/dbase/split/ripe.db.as-set.gz
RIPE_ROUTE_ORIGIN = https://ftp.ripe.net/ripe/dbase/split/ripe.db.route.gz
ARIN = https://ftp.arin.net/pub/rr/arin.db
RADB = ftp://ftp.radb.net/radb/dbase/radb.db.gz
to_cache
JCLS_WHOIS_PREFIX = noc.services.discovery.jobs.as.job.ASDiscoveryJob
PER_AS_DELAY = 10
require_db_connect(self)
static parse_rpsl(f, fields=None)
urlopen(self, url)
update_from_rpsl(self, url, r, key_field, values_field, forward, parser)

Fetch RPSL file, parse and return a set of pairs (key, value), where key and value fields set by key_field and values_field parameters :param url: URL to download RPSL :param r: defaultdict(list) :param key_field: key field :param values_field: falue field :param forward: True for forward lookup, False otherwise :param parser: :return: Number of parsed items

process_as_set_members(self)

Update as-set -> members :return:

process_origin_route(self)

Update origin -> route :return:

update(self)
noc.core.whois.update_whois_cache()