<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Pierce,<br>
      <br>
      thank you, it works now.<br>
      <br>
      Regards,<br>
      Tanja<br>
      <br>
      Am 29.11.2016 um 00:42 schrieb Pierce McEntagart:<br>
    </div>
    <blockquote
cite="mid:CAAazN30mZK7+EVMeTH7aZcbRjtqz8h--LQCyPfSVZ4LstAgAJw@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">Hi Tanja,
        <div><br>
        </div>
        <div>Yes it's possible to use the mininet script with your own
          target but you need to change it a little.
          <div><br>
          </div>
          <div>The openflow_l2.py script has a function called
            "setup_bd" which is relevant only for the switch.p4 based
            behavioral-model. For your target, you can delete this
            function and the lines that call it.</div>
          <div><br>
          </div>
        </div>
        <div>The thrift server running on port 9090 should be for the
          autogenerated PD-API. This needs to be started in the main.c
          you wrote for your target. See here:</div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
href="https://github.com/p4lang/p4factory/blob/master/targets/switch/main.c#L477">https://github.com/p4lang/p4factory/blob/master/targets/switch/main.c#L477</a><br>
        </div>
        <div><br>
        </div>
        <div>Your <span style="font-size:12.8px">"p4factory/targets/simple_</span><wbr
            style="font-size:12.8px"><span style="font-size:12.8px">router/run_add_demo_entries.</span><wbr
            style="font-size:12.8px"><span style="font-size:12.8px">bash"
            should add table entries via this server.</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Please let me know if you
            have any other issues,</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Thanks,</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Pierce</span></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Nov 28, 2016 at 5:46 AM, Tanja
          Ulmen <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:tanja.ulmen@rwth-aachen.de" target="_blank">tanja.ulmen@rwth-aachen.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
              <br>
              I have created an own target with the p4factory and it is
              running with a mininet script. Now my question is: is
              there a way to connect my own target with openflow to a
              ryu controller? <br>
              <br>
              I already added the p4ofagent, and I tried to use the
              openflow_l2.py mininet script with my own behavioral-model
              instead of the one of the switch.p4. The script tries to
              connect to some thrift server on port 9090 that I don't
              have. I have tried to understand how the switch.p4 is
              working, but I don't really get it. If I understand it
              correctly, in the switch.p4 this thrift server on 9090 is
              started by the switchapi and it<span
style="color:rgb(51,51,51);font-size:16px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">
              </span>is used to add some auto-generated tables? Until
              now I add the tables to my switch with a file similar to
              "p4factory/targets/simple_<wbr>router/run_add_demo_entries.<wbr>bash".<br>
              <br>
              It would be nice if I could use openflow with my own
              target.<br>
              I hope you can help me :).<br>
              <br>
              Best regards,<br>
              Tanja<br>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            P4-dev mailing list<br>
            <a moz-do-not-send="true" href="mailto:P4-dev@lists.p4.org">P4-dev@lists.p4.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org"
              rel="noreferrer" target="_blank">http://lists.p4.org/mailman/<wbr>listinfo/p4-dev_lists.p4.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>