Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode's profile - activity

2015-04-07 02:57:10 -0700 asked a question MD-Sal learning-switch example


I'm following this tutorial but when I try to build the app I get this error..

[ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project org.opendaylight.openflowplugin:learning-switch:0.1.0-SNAPSHOT (/home/ubuntu/openflowplugin/samples/learning-switch/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.openflowplugin:openflowplugin-parent:0.1.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.5.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.openflowplugin:openflowplugin-parent:0.1.0-SNAPSHOT, /home/ubuntu/openflowplugin/parent/pom.xml, line 12, column 13 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] [ERROR] [Help 2]

Does anyone know why?

Thank you

2015-03-27 07:01:02 -0700 asked a question Payload ICMP

Hey guys,

My topology has 1switch with two hosts, and I am writing an application in ad sal just to send the packets if the destination host is one in concrete. This is part of my code:

Packet pkt = this.dataPacketService.decodeDataPacket(inPkt);

  //extract the incoming node (i.e., switch) and node-connector (i.e., switchport)
  NodeConnector incoming_connector = inPkt.getIncomingNodeConnector();
  Node incoming_node = incoming_connector.getNode();

  if (pkt instanceof Ethernet) {

      Object next = pkt.getPayload();

          if (next instanceof IPv4) {

              InetAddress srcIP = InetAddress.getByAddress(NetUtils.intToByteArray4(((IPv4)next).getSourceAddress()));
              InetAddress dstIP = InetAddress.getByAddress(NetUtils.intToByteArray4(((IPv4)next).getDestinationAddress()));
              //"The destination IP Address is =====================> {}",dstIP);
              //"The destination IP Address is =====================> {}",virtual_ip2);

              if (dstIP.equals(virtual_ip2)) {

                 next = ((IPv4)next).getPayload();
       "The Payload is =====================> {}",next);

              //if (next instanceof TCP) {
                  //short srcPort = ((TCP)next).getSourcePort();
                  //short dstPort = ((TCP)next).getDestinationPort();
                  byte[] srcMAC = ((Ethernet)pkt).getSourceMACAddress();
                  byte[] dstMAC = ((Ethernet)pkt).getDestinationMACAddress();

                  long dstMAC_val = BitBufferHelper.toNumber(dstMAC);
                  NodeConnector outgoing_connector = this.mac_to_port.get(dstMAC_val);

                  try {
                      RawPacket destPkt = new RawPacket(inPkt);
                  } catch (ConstructionException e2) {
                      logger.warn("Could not create packet for PACKET_OUT");
                      return PacketResult.CONSUME;
               // Setup match rules for forward direction
                  // based on the stateless LB logic
                  Match match = new Match();
                  match.setField(MatchType.DL_TYPE, EtherTypes.IPv4.shortValue());
                  match.setField(MatchType.NW_PROTO, IPProtocols.TCP.byteValue());
                  match.setField(MatchType.DL_SRC, srcMAC);
                  match.setField(MatchType.NW_SRC, srcIP);
                  //match.setField(MatchType.TP_SRC, srcPort);
                  match.setField(MatchType.DL_DST, dstMAC);
                  match.setField(MatchType.NW_DST, dstIP);
                  //match.setField(MatchType.TP_DST, dstPort);
                  match.setField(MatchType.IN_PORT, incoming_connector);

                  // 3 actions needed for the forward direction
                  List<Action> actions = new ArrayList<Action>();

                  actions.add(new Output(outgoing_connector));

                  Flow f = new Flow(match, actions);

                  // Modify the flow on the network node
                  Status status = programmer.addFlow(incoming_node, f);
                  if (!status.isSuccess()) {
                      logger.warn("Forward direction: {}", status.getDescription());
                      return PacketResult.CONSUME;
        "Installed forward flow {} in node {}", f, incoming_node);
          catch (UnknownHostException e1) {
          return PacketResult.IGNORED;}

The thing is that the payload that I receive after the IP payload is an ICMP.. Could someone tell me why?

2015-03-22 01:46:47 -0700 received badge  Popular Question (source)
2015-03-22 01:46:47 -0700 received badge  Notable Question (source)
2015-03-22 01:46:47 -0700 received badge  Famous Question (source)
2015-03-21 13:50:48 -0700 received badge  Editor (source)
2015-03-21 13:37:57 -0700 asked a question how to control time flow in ad-sal application.

Hi everybody, I am new in ODL application development. I've been following this tutorial . I would like to be able to control the flow of my topology (2 switches with 2 hosts each), so I can send my packets for x seconds to one host and after that sending them to another host. Can someone please tell me where to start? Thanks!