Known subclasses: NotificationHandler.NotifierMqtt

Wrapper class for creating Notification Topic.

Method CreateIFDTopic This method creates the IFD topic.
Method CreateIFLTopic This method creates IFL topic.
Method CreateIFFTopic This method creates IFF topic.
Method CreateIFATopic This method creates IFA topic.
Method CreateFirewallTopic This method creates firewall topic.
Method CreateRouteTopic This method creates route topic.
Method CreateRouteTableTopic This method creates route table topic.
Method CreateGenericTopic This method creates a generic topic to subscribe all events.
Method CreateSyslogTopic This method creates the syslog topic.
Method CreateConfigUpdateTopic This method creates a topic to subscribe config-update events.
def CreateIFDTopic(self, op=DEFAULT_VALUE, ifd_name=DEFAULT_TOPIC):

This method creates the IFD topic.

Parametersopoperation("add", "delete", "change", "+"(all)), Default is "+".
ifd_nameifd name to subscribe, Default is all ifds.
ReturnsReturns the IFD topic object
def CreateIFLTopic(self, op=DEFAULT_VALUE, ifd_name=DEFAULT_IFD, sub_unit=None):

This method creates IFL topic.

Parametersopoperation("add", "delete", "change", "+"(all)), Default is "+".
ifd_nameifd name to subscribe, Default is all ifds.
sub_unitsub_unit is mandatory when interface name is passed.
ReturnsReturns the IFL topic object
def CreateIFFTopic(self, op=DEFAULT_VALUE, ifd_name=DEFAULT_IFD, sub_unit=None, family_type=DEFAULT_VALUE):

This method creates IFF topic.

Parametersopoperation("add", "delete", "change", "+"(all)), Default is "+".
ifd_nameifd name to subscribe, Default is all ifds.
sub_unitsub_unit is mandatory when interface name is passed.
family_typeDefault is all family_types.
ReturnsReturns the IFF topic object
def CreateIFATopic(self, op=DEFAULT_VALUE, ifd_name=DEFAULT_IFD, sub_unit=None, family_type=DEFAULT_VALUE, address=DEFAULT_TOPIC):

This method creates IFA topic.

Parametersopoperation("add", "delete", "change", "+"(all)), Default is "+".
ifd_nameifd name to subscribe, Default is all ifds.
sub_unitsub_unit is mandatory when interface name is passed.
family_typeDefault is all family_types.
addressDefault is all address.
ReturnsReturns the IFA topic object
def CreateFirewallTopic(self, op=DEFAULT_VALUE, filter_name=DEFAULT_TOPIC):

This method creates firewall topic.

Parametersopoperation("add", "delete", "change", "+"(all)), Default is "+".
filter_namefilter name to subscribe, Default is all filters.
ReturnsReturns the firewall topic object
def CreateRouteTopic(self, op=DEFAULT_VALUE, family=DEFAULT_VALUE, address=DEFAULT_VALUE, prefix_length=DEFAULT_TOPIC):

This method creates route topic.

Parametersopoperation("add", "delete", "change", "+"(all)), Default is "+".
familyfamily to subscribe, Default is all family.
addressaddress to subscribe, Default is all addresses.
prefix_lengthDefault is all prefix lengths
ReturnsReturns the route topic object
def CreateRouteTableTopic(self, op=DEFAULT_VALUE, table_name=DEFAULT_VALUE, lr_name=DEFAULT_TOPIC):

This method creates route table topic.

Parametersopoperation("add", "delete", "change", "+"(all)), Default is "+".
table_nametable name to subscribe. Default is all tables
lr_nameLR name to subscribe, Default is all
ReturnsReturns the route table topic object
def CreateGenericTopic(self):

This method creates a generic topic to subscribe all events.

ReturnsReturns the generic topic object
def CreateSyslogTopic(self, event_id=DEFAULT_TOPIC):

This method creates the syslog topic.

Parametersevent_idSyslog event id. Default is all syslog events.
ReturnsReturns the Topic Object
def CreateConfigUpdateTopic(self):

This method creates a topic to subscribe config-update events.

ReturnsReturns the config-update topic object
Default Values:
DEFAULT_IFD = '+/+/+'
DEFAULT_TOPIC = '#'
DEFAULT_VALUE = '+'
JET_NOTIFICATION_TOPIC_EVENT_TYPE_FIREWALL = '/junos/events/kernel/firewall/filter/<op>/<args>'
JET_NOTIFICATION_TOPIC_EVENT_TYPE_GENERIC = '/junos/events/kernel/#'
JET_NOTIFICATION_TOPIC_EVENT_TYPE_INTERFACE_IFA = '/junos/events/kernel/interfaces/ifa/<op>/<args>'
JET_NOTIFICATION_TOPIC_EVENT_TYPE_INTERFACE_IFD = '/junos/events/kernel/interfaces/ifd/<op>/<args>'
JET_NOTIFICATION_TOPIC_EVENT_TYPE_INTERFACE_IFF = '/junos/events/kernel/interfaces/iff/<op>/<args>'
JET_NOTIFICATION_TOPIC_EVENT_TYPE_INTERFACE_IFL = '/junos/events/kernel/interfaces/ifl/<op>/<args>'
JET_NOTIFICATION_TOPIC_EVENT_TYPE_ROUTE = '/junos/events/kernel/route/<op>/<args>'
JET_NOTIFICATION_TOPIC_EVENT_TYPE_ROUTE_TABLE = '/junos/events/kernel/route-table/<op>/<args>'
CONFIG_UPDATE = '/junos/events/genpub/config-update/'
SYSLOG_TOPIC_HEADER = '/junos/events/syslog/'
Constant Definitions:
OP_LIST = ['add', 'delete', 'change', '+']
TOPIC_HEADER = '/junos/events/kernel'