Browse Source

ovsd: add package

Add Open vSwtich configuration daemon for netifd.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
lilik-openwrt-22.03
Daniel Golle 4 years ago
parent
commit
3e30c34bac
No known key found for this signature in database GPG Key ID: 5A8F39C31C3217CA
3 changed files with 57 additions and 0 deletions
  1. +43
    -0
      net/ovsd/Makefile
  2. +13
    -0
      net/ovsd/files/etc/init.d/ovsd
  3. +1
    -0
      net/ovsd/files/lib/netifd/ubusdev-config/ovsd.json

+ 43
- 0
net/ovsd/Makefile View File

@ -0,0 +1,43 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ovsd
PKG_VERSION:=2020-10-12
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.hhi.fraunhofer.de/wn-ina/ovsd.git
PKG_SOURCE_VERSION:=e6a07f27dd8a5893eb6110c69922077995b9b26a
PKG_MIRROR_HASH:=9d903b3fecd8a3e102e1477efe479fc3851b1814ea0852e1dae39065b88cd157
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Arne Kappen <akappen@inet.tu-berlin.de>
PKG_LICENSE:=GPL-2.0
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/ovsd
SECTION:=net
SUBMENU:=Open vSwitch
CATEGORY:=Network
DEPENDS:=+openvswitch +libubox +libubus +netifd
TITLE:=Open vSwtich configuration daemon for netifd
MAINTAINER:=Arne Kappen <akappen@inet.tu-berlin.de>
endef
define Package/ovsd/description
External device handler adding Open vSwitch support to netifd.
endef
define Package/ovsd/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ovsd $(1)/sbin/
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,ovsd))

+ 13
- 0
net/ovsd/files/etc/init.d/ovsd View File

@ -0,0 +1,13 @@
#!/bin/sh /etc/rc.common
START=19
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command /sbin/ovsd
procd_set_param respawn
procd_set_param watch ovs
procd_close_instance
}

+ 1
- 0
net/ovsd/files/lib/netifd/ubusdev-config/ovsd.json View File

@ -0,0 +1 @@
{ "name" : "Open vSwitch", "ubus_name" : "ovs", "bridge" : "1", "br-prefix" : "ovs", "config" : [ ["name", 3], ["ifname", 1], ["empty", 7], ["parent", 3], ["vlan", 5], ["ofcontrollers", 1], ["controller_fail_mode", 3], ["ssl_private_key", 3], ["ssl_cert", 3], ["ssl_ca_cert", 3], ["ssl_bootstrap", 7] ], "info" : [ ["ofcontrollers", 1], ["fail_mode", 3], ["ports", 1], ["parent", 3], ["vlan", 5], ["ssl", 2] ] }

Loading…
Cancel
Save