def GetMulticastMacFromIPv6(ip): return MacAddressBase(integer=(0x333300000000 | (ip.getnum() & 0xFFFFFFFF)))
def GetMulticastMacFromIPv4(ip): return MacAddressBase(integer=(0x01005E000000 | (ip.getnum() & 0x007FFFFF)))
def GetQuiesceDstMac(tc, pkt): return MacAddressBase(integer=(0x00eeff000005))
def GetMACAddrForValidation(testcase, args): if testcase.module.name != "LEARN_INVALID_MACADDR": return testcase.config.localmapping.VNIC.MACAddr # return invalid macaddr return MacAddressBase(integer=0)
def GetQuiesceSrcMac(tc, pkt): return MacAddressBase(integer=(0x00eeff000004))