

def process(self, obj, meta):
    mei_objs = obj['mei_response']['objects']
    vendor = mei_objs['vendor']
    product_code = mei_objs['product_code']
    if (('lantronix' in vendor.lower()) and ('xport' in product_code.lower())):
        meta.global_metadata.manufacturer = Manufacturer.LANTRONIX
        meta.global_metadata.product = product_code.rstrip()
        revision = mei_objs.get('revision', '').strip()
        if revision:
            meta.global_metadata.revision = revision
        meta.global_metadata.device_type = Type.SCADA_GATEWAY
        meta.tags = self.tags
        return meta

dataset/ETHPy150Open zmap/ztag/ztag/annotations/lantronix.py LantronixXPort.process/original