16 package org.openkilda.floodlight.pathverification.web;
20 import org.projectfloodlight.openflow.types.DatapathId;
21 import org.projectfloodlight.openflow.types.OFPort;
22 import org.restlet.resource.Put;
23 import org.restlet.resource.ServerResource;
24 import org.slf4j.Logger;
25 import org.slf4j.LoggerFactory;
36 String srcSwitch = (String) getRequestAttributes().get(
"src_switch");
37 String
port = (String) getRequestAttributes().get(
"src_port");
38 String dstSwitch = (String) getRequestAttributes().get(
"dst_switch");
40 logger.debug(
"asking {} to send a discovery packet out port {} with destination {}.",
new Object[]{srcSwitch,
port, dstSwitch});
42 if (dstSwitch == null) {
43 DatapathId d = DatapathId.of(srcSwitch);
44 int p = Integer.parseInt(
port);
boolean sendDiscoveryMessage(DatapathId srcSwId, OFPort port)
String sendDiscoverPacket()