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