Skip to contentSkip to conversation

openflow: import and tweak

PATCH In review Joe MacDonald 2 participants 4 messages Oct 8, 2013 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openflow: import and tweak

Based on work by David Nyström (meta-virtualization) and Laszlo Papp (meta-oe).

- Import OpenFlow 1.0 from meta-virtualization and provide an updated version of the recipe for the head of tree in the OpenFlow git repository.

- Minor tweak in both recipes for do_install_append() spacing.

- Update 'libssl' PACKAGECONFIG flag in both to follow the 'openssl' convention used elsewhere in meta-oe.

- Create common include file for both versioned and git recipes.

---
 .../recipes-protocols/openflow/openflow.inc        |   35 ++++++++++++++++++++
 .../recipes-protocols/openflow/openflow_1.0.bb     |    4 +++
 .../recipes-protocols/openflow/openflow_git.bb     |    4 +++
 3 files changed, 43 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/openflow/openflow.inc
 create mode 100644 meta-networking/recipes-protocols/openflow/openflow_1.0.bb
 create mode 100644 meta-networking/recipes-protocols/openflow/openflow_git.bb
meta-networking/recipes-protocols/openflow/openflow.inc new file +35 -0
new file mode 100644
index 0000000..43af54e
@@ -0,0 +1,35 @@
+SUMMARY = "OpenFlow communications protocol"
+DESCRIPTION = "\
+Open standard that enables researchers to run experimental protocols in \
+contained networks.  OpenFlow is a communications interface between \
+control and forwarding planes of a software-defined networking architecture.\
+"
+HOMEPAGE = "http://www.openflow.org"
+
+SECTION = "networking"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=e870c934e2c3d6ccf085fd7cf0a1e2e2"
+
+SRC_URI = "git://gitosis.stanford.edu/openflow.git;protocol=git"
+
+DEPENDS = "virtual/libc"
+
+EXTRA_OECONF += "KARCH=${TARGET_ARCH}"
+
+PACKAGECONFIG ??= "openssl"
+PACKAGECONFIG[openssl] = "--enable-ssl,--disable-ssl, openssl, libssl"
+
+S = "${WORKDIR}/git"
+
+inherit autotools
+
+do_configure() {
+    ./boot.sh
+    oe_runconf
+}
+
+do_install_append() {
+    # Remove /var/run as it is created on startup
+    rm -rf ${D}${localstatedir}/run
+}
meta-networking/recipes-protocols/openflow/openflow_1.0.bb new file +4 -0
new file mode 100644
index 0000000..a7e254d
@@ -0,0 +1,4 @@
+include ${BPN}.inc
+
+SRCREV = "5ccca75a69f99791659bcfbcf35353ab1921320a"
+PV = "1.0"
meta-networking/recipes-protocols/openflow/openflow_git.bb new file +4 -0
new file mode 100644
index 0000000..6403bfb
@@ -0,0 +1,4 @@
+include ${BPN}.inc
+
+SRCREV = "c84f33f09d5dbcfc9b489f64cb30475bf36f653a"
+PV = "1.0+git${SRCPV}"
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Joe MacDonald

Based on work by David Nyström (meta-virtualization) and Laszlo Papp (meta-oe).

- Import OpenFlow 1.0 from meta-virtualization and provide an updated version of the recipe for the head of tree in the OpenFlow git repository.

Quoted 6 lines

- Minor tweak in both recipes for do_install_append() spacing.

- Update 'libssl' PACKAGECONFIG flag in both to follow the 'openssl' convention used elsewhere in meta-oe.

- Create common include file for both versioned and git recipes

Replying again to the list, since I replied from my non-subscribed account a few minutes ago ....

Awesome. I was just wondering about this a few days ago. I'll push a removal of the meta-virt recipe, once this has merged to meta-networking.

Quoted 79 lines
---
 .../recipes-protocols/openflow/openflow.inc        |   35 ++++++++++++++++++++
 .../recipes-protocols/openflow/openflow_1.0.bb     |    4 +++
 .../recipes-protocols/openflow/openflow_git.bb     |    4 +++
 3 files changed, 43 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/openflow/openflow.inc
 create mode 100644 meta-networking/recipes-protocols/openflow/openflow_1.0.bb
 create mode 100644 meta-networking/recipes-protocols/openflow/openflow_git.bb
meta-networking/recipes-protocols/openflow/openflow.inc new file +35 -0
new file mode 100644
index 0000000..43af54e
@@ -0,0 +1,35 @@
+SUMMARY = "OpenFlow communications protocol"
+DESCRIPTION = "\
+Open standard that enables researchers to run experimental protocols in \
+contained networks.  OpenFlow is a communications interface between \
+control and forwarding planes of a software-defined networking architecture.\
+"
+HOMEPAGE = "http://www.openflow.org"
+
+SECTION = "networking"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=e870c934e2c3d6ccf085fd7cf0a1e2e2"
+
+SRC_URI = "git://gitosis.stanford.edu/openflow.git;protocol=git"
+
+DEPENDS = "virtual/libc"
+
+EXTRA_OECONF += "KARCH=${TARGET_ARCH}"
+
+PACKAGECONFIG ??= "openssl"
+PACKAGECONFIG[openssl] = "--enable-ssl,--disable-ssl, openssl, libssl"
+
+S = "${WORKDIR}/git"
+
+inherit autotools
+
+do_configure() {
+    ./boot.sh
+    oe_runconf
+}
+
+do_install_append() {
+    # Remove /var/run as it is created on startup
+    rm -rf ${D}${localstatedir}/run
+}
meta-networking/recipes-protocols/openflow/openflow_1.0.bb new file +4 -0
new file mode 100644
index 0000000..a7e254d
@@ -0,0 +1,4 @@
+include ${BPN}.inc
+
+SRCREV = "5ccca75a69f99791659bcfbcf35353ab1921320a"
+PV = "1.0"
meta-networking/recipes-protocols/openflow/openflow_git.bb new file +4 -1
new file mode 100644
index 0000000..6403bfb
@@ -0,0 +1,4 @@
+include ${BPN}.inc
+
+SRCREV = "c84f33f09d5dbcfc9b489f64cb30475bf36f653a"
+PV = "1.0+git${SRCPV}"
--

1.7.10.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAOMwXhNLQKhAJMvKT4TYJrKRf5npt7MWK1sMULNpgSsrYyJBEg@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CAOMwXhOL7XopAd7dvJ-OLctZiy_uAXa0BA07OHR2573kkYD2sA@mail.gmail.com

#5 lore raw

Hey Laszlo,

Quoted 2 lines · [Re: [meta-networking][PATCH] openflow: import and tweak] On 13.10.08 (Tue…

Just to give an example about one of those critical issues: the recipe for 1.0 is even broken, as that should *not* use ./boot.sh.

Okay. It didn't cause obvious problems for me and it seemed to be working for the guys using meta-virtualization, but I'm completely willing to believe it's not the right thing to do here. If you have an alternative suggestion or could help me understand the impact, please let me know.

Quoted 6 lines · Laszlo Papp

In short: please do not get this in if I may ask.

The recipe from meta-virtual is flawed in my opinion and should be dropped, and then rewritten,

I recall you saying that, though I haven't encountered large problems with it yet. I'd appreciate any guidance you have to offer, of course, including a full rewrite.

Quoted 3 lines

especially since "Bruce" was so concerned about
license, reference and copyrights stuff. I would not mix his code into a new layer for those issues.

I'm not terribly concerned about attribution and copyright since he seems to have agreed with my approach here.

Quoted 4 lines

By the way, I also mentioned that I would rewrite that. Is there any reason why I did not get enough time for that contribution? I mean I have not even been contacted about my status. Why did you not try to avoid the cross-work?

The last time this came around the thread was already pretty long before I even started with it and the last I'd seen suggested to me that you weren't interested in having this integrated anymore. I still thought there was value in it, so I started from your base and tried to address the open issues from the thread. Time-wise, a month has passed for something it sounded like would be done in a few days. I took that at confirmation that you were no longer pursuing this.

Absolutely no slight was intended.

-J.

Quoted 129 lines

    On Tue, Oct 8, 2013 at 2:37 PM, Bruce Ashfield <
    [email protected]> wrote:

        On 13-10-08 09:35 AM, Joe MacDonald wrote:

            Based on work by David Nyström (meta-virtualization) and Laszlo
            Papp
            (meta-oe).

                - Import OpenFlow 1.0 from meta-virtualization and provide an
            updated
                  version of the recipe for the head of tree in the OpenFlow
            git
                  repository.

                - Minor tweak in both recipes for do_install_append() spacing.

                - Update 'libssl' PACKAGECONFIG flag in both to follow the
            'openssl'
                  convention used elsewhere in meta-oe.

                - Create common include file for both versioned and git
            recipes.


        Awesome. I was just wondering about this a few days ago. I'll push a
        removal of the meta-virt recipe, once this has merged to
        meta-networking.

        Acked-by: Bruce Ashfield <[email protected]>




            Signed-off-by: Joe MacDonald <[email protected]>
            ---
              .../recipes-protocols/openflow/openflow.inc        |   35
            ++++++++++++++++++++
              .../recipes-protocols/openflow/openflow_1.0.bb     |    4 +++
              .../recipes-protocols/openflow/openflow_git.bb     |    4 +++
              3 files changed, 43 insertions(+)
              create mode 100644 meta-networking/recipes-protocols/openflow/
            openflow.inc
              create mode 100644 meta-networking/recipes-protocols/openflow/
            openflow_1.0.bb
              create mode 100644 meta-networking/recipes-protocols/openflow/
            openflow_git.bb

            diff --git a/meta-networking/recipes-protocols/openflow/
            openflow.inc b/meta-networking/recipes-protocols/openflow/
            openflow.inc
            new file mode 100644
            index 0000000..43af54e
            --- /dev/null
            +++ b/meta-networking/recipes-protocols/openflow/openflow.inc
            @@ -0,0 +1,35 @@
            +SUMMARY = "OpenFlow communications protocol"
            +DESCRIPTION = "\
            +Open standard that enables researchers to run experimental
            protocols in \
            +contained networks.  OpenFlow is a communications interface
            between \
            +control and forwarding planes of a software-defined networking
            architecture.\
            +"
            +HOMEPAGE = "http://www.openflow.org"
            +
            +SECTION = "networking"
            +LICENSE = "GPLv2"
            +
            +LIC_FILES_CHKSUM = "file://COPYING;md5=
            e870c934e2c3d6ccf085fd7cf0a1e2e2"
            +
            +SRC_URI = "git://gitosis.stanford.edu/openflow.git;protocol=git"
            +
            +DEPENDS = "virtual/libc"
            +
            +EXTRA_OECONF += "KARCH=${TARGET_ARCH}"
            +
            +PACKAGECONFIG ??= "openssl"
            +PACKAGECONFIG[openssl] = "--enable-ssl,--disable-ssl, openssl,
            libssl"
            +
            +S = "${WORKDIR}/git"
            +
            +inherit autotools
            +
            +do_configure() {
            +    ./boot.sh
            +    oe_runconf
            +}
            +
            +do_install_append() {
            +    # Remove /var/run as it is created on startup
            +    rm -rf ${D}${localstatedir}/run
            +}
            diff --git a/meta-networking/recipes-protocols/openflow/
            openflow_1.0.bb b/meta-networking/recipes-protocols/openflow/
            openflow_1.0.bb
            new file mode 100644
            index 0000000..a7e254d
            --- /dev/null
            +++ b/meta-networking/recipes-protocols/openflow/openflow_1.0.bb
            @@ -0,0 +1,4 @@
            +include ${BPN}.inc
            +
            +SRCREV = "5ccca75a69f99791659bcfbcf35353ab1921320a"
            +PV = "1.0"
            diff --git a/meta-networking/recipes-protocols/openflow/
            openflow_git.bb b/meta-networking/recipes-protocols/openflow/
            openflow_git.bb
            new file mode 100644
            index 0000000..6403bfb
            --- /dev/null
            +++ b/meta-networking/recipes-protocols/openflow/openflow_git.bb
            @@ -0,0 +1,4 @@
            +include ${BPN}.inc
            +
            +SRCREV = "c84f33f09d5dbcfc9b489f64cb30475bf36f653a"
            +PV = "1.0+git${SRCPV}"
Signature · 2 lines
-Joe MacDonald.
:wq
#6 lore raw
Quoted 24 lines · Joe MacDonald

Hey Laszlo,

Quoted 2 lines · [Re: [meta-networking][PATCH] openflow: import and tweak] On 13.10.08 (Tue…

Just to give an example about one of those critical issues: the recipe for 1.0 is even broken, as that should *not* use ./boot.sh.

Okay. It didn't cause obvious problems for me and it seemed to be working for the guys using meta-virtualization, but I'm completely willing to believe it's not the right thing to do here. If you have an alternative suggestion or could help me understand the impact, please let me know.

Quoted 6 lines · Laszlo Papp

In short: please do not get this in if I may ask.

The recipe from meta-virtual is flawed in my opinion and should be dropped, and then rewritten,

I recall you saying that, though I haven't encountered large problems with it yet. I'd appreciate any guidance you have to offer, of course, including a full rewrite.

Quoted 6 lines
Quoted 3 lines

especially since "Bruce" was so concerned about
license, reference and copyrights stuff. I would not mix his code into a new layer for those issues.

I'm not terribly concerned about attribution and copyright since he seems to have agreed with my approach here.

Yep.

Also, since non of the code is mine, I was just looking for a paper trail back to
the old recipe and contributor for folks that were updating layers and can follow
the recipe movement. I think my previous concerns were misunderstood.

So Joe's approach is fine, and I have no issues.

Full re-write, some combination .. they are all good. I'll just test meta-virt against it no matter what, and send patches if things break.

Quoted 14 lines
Quoted 5 lines

By the way, I also mentioned that I would rewrite that. Is there any reason why I did not get enough time for that contribution? I mean I have not even been contacted about my status. Why did you not try to avoid the cross-work?

The last time this came around the thread was already pretty long before I even started with it and the last I'd seen suggested to me that you weren't interested in having this integrated anymore. I still thought there was value in it, so I started from your base and tried to address the open issues from the thread. Time-wise, a month has passed for something it sounded like would be done in a few days. I took that at confirmation that you were no longer pursuing this.

Quoted 1 line

Absolutely no slight was intended.

'nor here with my Ack of Joe's work. I was just waiting in the background as well.

Cheers,

Bruce

Quoted 142 lines

-J.

Quoted 114 lines

    On Tue, Oct 8, 2013 at 2:37 PM, Bruce Ashfield <
    [email protected]> wrote:

        On 13-10-08 09:35 AM, Joe MacDonald wrote:

            Based on work by David Nyström (meta-virtualization) and Laszlo
            Papp
            (meta-oe).

                - Import OpenFlow 1.0 from meta-virtualization and provide an
            updated
                  version of the recipe for the head of tree in the OpenFlow
            git
                  repository.

                - Minor tweak in both recipes for do_install_append() spacing.

                - Update 'libssl' PACKAGECONFIG flag in both to follow the
            'openssl'
                  convention used elsewhere in meta-oe.

                - Create common include file for both versioned and git
            recipes.


        Awesome. I was just wondering about this a few days ago. I'll push a
        removal of the meta-virt recipe, once this has merged to
        meta-networking.

        Acked-by: Bruce Ashfield <[email protected]>




            Signed-off-by: Joe MacDonald <[email protected]>
            ---
              .../recipes-protocols/openflow/openflow.inc        |   35
            ++++++++++++++++++++
              .../recipes-protocols/openflow/openflow_1.0.bb     |    4 +++
              .../recipes-protocols/openflow/openflow_git.bb     |    4 +++
              3 files changed, 43 insertions(+)
              create mode 100644 meta-networking/recipes-protocols/openflow/
            openflow.inc
              create mode 100644 meta-networking/recipes-protocols/openflow/
            openflow_1.0.bb
              create mode 100644 meta-networking/recipes-protocols/openflow/
            openflow_git.bb

            diff --git a/meta-networking/recipes-protocols/openflow/
            openflow.inc b/meta-networking/recipes-protocols/openflow/
            openflow.inc
            new file mode 100644
            index 0000000..43af54e
            --- /dev/null
            +++ b/meta-networking/recipes-protocols/openflow/openflow.inc
            @@ -0,0 +1,35 @@
            +SUMMARY = "OpenFlow communications protocol"
            +DESCRIPTION = "\
            +Open standard that enables researchers to run experimental
            protocols in \
            +contained networks.  OpenFlow is a communications interface
            between \
            +control and forwarding planes of a software-defined networking
            architecture.\
            +"
            +HOMEPAGE = "http://www.openflow.org"
            +
            +SECTION = "networking"
            +LICENSE = "GPLv2"
            +
            +LIC_FILES_CHKSUM = "file://COPYING;md5=
            e870c934e2c3d6ccf085fd7cf0a1e2e2"
            +
            +SRC_URI = "git://gitosis.stanford.edu/openflow.git;protocol=git"
            +
            +DEPENDS = "virtual/libc"
            +
            +EXTRA_OECONF += "KARCH=${TARGET_ARCH}"
            +
            +PACKAGECONFIG ??= "openssl"
            +PACKAGECONFIG[openssl] = "--enable-ssl,--disable-ssl, openssl,
            libssl"
            +
            +S = "${WORKDIR}/git"
            +
            +inherit autotools
            +
            +do_configure() {
            +    ./boot.sh
            +    oe_runconf
            +}
            +
            +do_install_append() {
            +    # Remove /var/run as it is created on startup
            +    rm -rf ${D}${localstatedir}/run
            +}
            diff --git a/meta-networking/recipes-protocols/openflow/
            openflow_1.0.bb b/meta-networking/recipes-protocols/openflow/
            openflow_1.0.bb
            new file mode 100644
            index 0000000..a7e254d
            --- /dev/null
            +++ b/meta-networking/recipes-protocols/openflow/openflow_1.0.bb
            @@ -0,0 +1,4 @@
            +include ${BPN}.inc
            +
            +SRCREV = "5ccca75a69f99791659bcfbcf35353ab1921320a"
            +PV = "1.0"
            diff --git a/meta-networking/recipes-protocols/openflow/
            openflow_git.bb b/meta-networking/recipes-protocols/openflow/
            openflow_git.bb
            new file mode 100644
Quoted 15 lines
            index 0000000..6403bfb
            --- /dev/null
            +++ b/meta-networking/recipes-protocols/openflow/openflow_git.bb
            @@ -0,0 +1,4 @@
            +include ${BPN}.inc
            +
            +SRCREV = "c84f33f09d5dbcfc9b489f64cb30475bf36f653a"
            +PV = "1.0+git${SRCPV}"

--
-Joe MacDonald.
:wq

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"