def _check(self):
        """
        run layer specific checks
        """
        if conf.contribs['LLDP'].strict_mode() and self._length != 2:
            raise LLDPInvalidLengthField('length must be 2 - got '
                                         '{}'.format(self._length))
def _check ( self ) : if conf . contribs [ 'LLDP' ] . strict_mode ( ) and self . _length != 2 : raise LLDPInvalidLengthField ( 'length must be 2 - got ' '{}' . format ( self . _length ) )
run layer specific checks