'\'type\' should be OFPAT_SET_DL_SRC or OFPAT_SET_DL_DST.'

def __init__(self, type=None, dl_addr=None):

    self.type = type
    self.dl_addr = EMPTY_ETH
    if (dl_addr is not None):
        self.dl_addr = EthAddr(dl_addr)
