noc.cm.parsers.base

Module Contents

class noc.cm.parsers.base.BaseParser(managed_object)

Bases: object

parse(self, config)

Parse config, yield and modify facts

parse_file(self, path)
iter_facts(self)
yield_fact(self, fact)
convert_interface_name(self, name)
get_system_fact(self)
get_interface_defaults(self, name)

Get interface default settings

get_subinterface_defaults(self)

Get subinterface default settings

get_user_defaults(self)

Get user default settings

get_interface_fact(self, name)
get_current_interface(self)

Returns last get_interface_fact call

get_subinterface_fact(self, name, interface_name=None)
get_current_subinterface(self)

Returns last get_subinterface_fact call

get_sysloghost_fact(self, ip)
get_ntpserver_fact(self, ip)
get_user_fact(self, name)
get_vlan_fact(self, id)
get_current_vlan(self)

Returns last get_vlan_fact call

get_service_fact(self, name)
get_current_service(self)

Returns last get_service_fact call

get_vrf_fact(self, name)
get_current_vrf(self)

Returns last get_vrf_fact call

register_interface_section(self, name, start, end)

Register offsets of interface config section

get_static_route_fact(self, prefix)