#NEWLINE# def process( self , obj , meta ) : #NEWLINE# #INDENT# mei_objs = obj [ 'mei_response' ] [ 'objects' ] #NEWLINE# vendor = mei_objs [ 'vendor' ] #NEWLINE# product_name = mei_objs [ 'product_name' ] #NEWLINE# revision = mei_objs . get ( 'revision' , '' ) . strip ( ) #NEWLINE# if ( 'peweu' not in vendor . lower ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( 'fp-webserver' not in product_name . lower ( ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# meta . global_metadata . manufacturer = Manufacturer . PANASONIC #NEWLINE# meta . local_metadata . manufacturer = Manufacturer . PANASONIC #NEWLINE# meta . local_metadata . product = product_name . strip ( ) #NEWLINE# version = mei_objs . get ( 'product_code' , '' ) . strip ( ) #NEWLINE# if version : #NEWLINE# #INDENT# meta . local_metadata . version = version #NEWLINE# #UNINDENT# revision = mei_objs . get ( 'revision' , '' ) . strip ( ) #NEWLINE# if revision : #NEWLINE# #INDENT# meta . local_metadata . revision = revision #NEWLINE# #UNINDENT# model_name = mei_objs . get ( 'model_name' , '' ) . strip ( ) #NEWLINE# if model_name : #NEWLINE# #INDENT# meta . global_metadata . version = model_name #NEWLINE# #UNINDENT# app = mei_objs . get ( 'user_application_name' , '' ) . strip ( ) #NEWLINE# if app : #NEWLINE# #INDENT# meta . global_metadata . product = app #NEWLINE# #UNINDENT# meta . device_type = Type . SCADA_GATEWAY #NEWLINE# meta . tags = self . tags #NEWLINE# return mei_objs