

@classmethod
def parser(cls, buf):
    tag = struct.unpack_from(value_unpack_str._UNPACK_STR, buf)[0]
    if ((tag == DHCP_END_OPT) or (tag == DHCP_PAD_OPT)):
        return None
    buf = buf[cls._MIN_LEN:]
    length = struct.unpack_from(cls._UNPACK_STR, buf)[0]
    buf = buf[cls._MIN_LEN:]
    value_unpack_str = ('%ds' % length)
    value = struct.unpack_from(value_unpack_str, buf)[0]
    return cls(tag, value, length)

dataset/ETHPy150Open osrg/ryu/ryu/lib/packet/dhcp.py option.parser/VarMisuse@21/23 `cls`->`value_unpack_str`