Package net.floodlightcontroller.util

Examples of net.floodlightcontroller.util.MACAddress.toBytes()


            for (Integer i : device.getIPv4Addresses()) {
                if (gatewayToGuid.containsKey(i)) {
                    MACAddress mac = MACAddress.valueOf(device.getMACAddress());
                    if (log.isDebugEnabled())
                        log.debug("Adding MAC {} with IP {} a a gateway",
                                    HexString.toHexString(mac.toBytes()),
                                    IPv4.fromIPv4Address(i));
                        macToGateway.put(mac, i);
                    }
                }
            }
View Full Code Here


            // if device is a gateway remove
            MACAddress mac = MACAddress.valueOf(device.getMACAddress());
            if (macToGateway.containsKey(mac)) {
                if (log.isDebugEnabled())
                    log.debug("Removing MAC {} as a gateway",
                                HexString.toHexString(mac.toBytes()));
                macToGateway.remove(mac);
             }
        }

        @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.