[PATCH] libnl python basic bridge support

Nicolas Planel nicolas.planel at enovance.com
Fri Oct 11 14:14:49 EDT 2013


    Hi Thomas,


Here a patchsets that include basically :
  o fixup link->l_af_ops
  o basic bridge python binding
  o test-create-bridge program (C and python)


Regards,

Nicolas

---

commit 287f20b05ff43cd67bab5712c4ff2cd7b5fbede5
Author: Nicolas PLANEL
Date:   Fri Oct 11 15:52:22 2013 +0000

     python: add bridge flags API
     
     Add flags set/get methods aim to change bridge flags :
      o hairpin_mode
      o bpdu_guard
      o root_block
      o fast_leave
     
     Signed-off-by: Nicolas PLANEL

  include/netlink/route/link/bridge.h  |    3 +++
  lib/route/link/bridge.c              |   24 +++++++++++++++++++++++
  python/netlink/route/capi.i          |   10 ++++++++++
  python/netlink/route/links/bridge.py |   35 ++++++++++++++++++++++++++++++++++
  4 files changed, 72 insertions(+)

commit fa9ebda1aec5438566cc4b33449e3900ad9d000b
Author: Nicolas PLANEL
Date:   Thu Oct 10 22:34:18 2013 +0000

     test: add python bridge testing sample
     
     New test sample file, test-create-bridge.py
     Create an bridge (testbrige) and attach an already setup interface (testtap1) to it.
     
     Signed-off-by: Nicolas PLANEL

  python/tests/test-create-bridge.py |   28 ++++++++++++++++++++++++++++
  1 file changed, 28 insertions(+)

commit 53836225986a48f1f6770fd22dc045d84b66c7a4
Author: Nicolas PLANEL
Date:   Thu Oct 10 22:27:44 2013 +0000

     python: add basic netlink protocol bridge interface support
     
     Implements basic bridge interface support using netlink protocol
     
     Signed-off-by: Nicolas PLANEL

  python/netlink/route/capi.i          |   22 +++++++++
  python/netlink/route/link.py         |   12 +++++
  python/netlink/route/links/bridge.py |   84 ++++++++++++++++++++++++++++++++++
  3 files changed, 118 insertions(+)

commit c89a58e176340d0b7d46665ad7f12cc706299ccd
Author: Nicolas PLANEL
Date:   Thu Oct 10 21:43:12 2013 +0000

     test: add bridge creation sample
     
     New test sample file, test-create-bridge.c
     Create an bridge (testbrige) and attach an already setup interface (testtap1) to it.
     
     Signed-off-by: Nicolas PLANEL

  tests/Makefile.am          |    2 ++
  tests/test-create-bridge.c |   80 ++++++++++++++++++++++++++++++++++++++++++++
  2 files changed, 82 insertions(+)

commit 89cfa0af3e73f556684a390463bdf448a0dfcd0b
Author: Nicolas PLANEL
Date:   Thu Oct 10 20:51:38 2013 +0000

     route/link: fixup link->l_af_ops must be set for some kind of links
     
     Lookup on IFLA_INFO_KIND information to setup the right link->l_af_ops callbacks
     For example, if you setup a bridge this is avoid to trig IS_BRIDGE_LINK_ASSERT() on rtnl_link_bridge_get_flags() call.
     
         line=, function=) at assert.c:94
         0x7ffff5dc39a0 "rtnl_link_bridge_get_flags") at assert.c:103
     
     Signed-off-by: Nicolas PLANEL

  lib/route/link.c |   11 +++++++++++
  1 file changed, 11 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-python-add-bridge-flags-API.patch
Type: text/x-patch
Size: 5193 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20131011/e56aebbd/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-test-add-python-bridge-testing-sample.patch
Type: text/x-patch
Size: 1423 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20131011/e56aebbd/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-python-add-basic-netlink-protocol-bridge-interface-s.patch
Type: text/x-patch
Size: 6374 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20131011/e56aebbd/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-test-add-bridge-creation-sample.patch
Type: text/x-patch
Size: 3580 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20131011/e56aebbd/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-route-link-fixup-link-l_af_ops-must-be-set-for-some-.patch
Type: text/x-patch
Size: 1704 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20131011/e56aebbd/attachment-0009.bin>


More information about the libnl mailing list