From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.valinux.co.jp (mail.valinux.co.jp [210.128.90.3]) by dpdk.org (Postfix) with ESMTP id E2E3F255 for ; Sun, 23 Sep 2018 04:22:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.valinux.co.jp (Postfix) with ESMTP id 90A02B3C68 for ; Sun, 23 Sep 2018 11:22:34 +0900 (JST) X-Virus-Scanned: Debian amavisd-new at valinux.co.jp Received: from mail.valinux.co.jp ([127.0.0.1]) by localhost (mail.valinux.co.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VYpdJqzUA6xW for ; Sun, 23 Sep 2018 11:22:34 +0900 (JST) Received: from [127.0.0.1] (vagw.valinux.co.jp [210.128.90.14]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.valinux.co.jp (Postfix) with ESMTPS id 753E0B3B4E for ; Sun, 23 Sep 2018 11:22:34 +0900 (JST) Date: Sun, 23 Sep 2018 11:22:34 +0900 From: Itsuro ODA To: spp@dpdk.org Message-Id: <20180923112233.2D71.277DD91C@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.71.01 [ja] Subject: [spp] [PATCH v2 0/9] spp-ctl: SPP controller with Web API X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Sep 2018 02:22:37 -0000 From: Itsuro Oda spp-ctl is a SPP controller with a REST like web API. spp-ctl maintains the connections from the SPP processes and at the same time exposes the API for the user to request for the SPP processes. Background and motivation: Current CLI (spp.py/spp_vf.py) can be used by intaractive only. Therefore, spp-agent, a component of networking-spp which make SPP available on OpenStack environment, implements SPP controller in itself. (see. https://github.com/openstack/networking-spp ) Either CLI or spp-agent, there is a problem that other people can not request to SPP processes while using. spp-ctl is invented to solve this problem. Both CLI and spp-agent can be used spp-ctl to request SPP processes instead of owning contoroller itself. In that case, multiple people can request to SPP processes at the same time. Note that spp-agent has a plan to change to use spp-ctl. It is also available not using CLI but requesting spp-ctl directly. Itsuro Oda (9): docs: overview docs: api reference docs: index docs: top index add requirement.txt spp-ctl: executable spp-ctl: controller spp-ctl: web api handler spp-ctl: spp command interface docs/guides/index.rst | 1 + docs/guides/spp-ctl/api-reference.rst | 790 ++++++++++++++++++++++++++ docs/guides/spp-ctl/index.rst | 39 ++ docs/guides/spp-ctl/overview.rst | 102 ++++ requirements.txt | 3 + src/spp-ctl/spp-ctl | 11 + src/spp-ctl/spp_ctl.py | 158 ++++++ src/spp-ctl/spp_proc.py | 184 ++++++ src/spp-ctl/spp_webapi.py | 440 ++++++++++++++ 9 files changed, 1728 insertions(+) create mode 100644 docs/guides/spp-ctl/api-reference.rst create mode 100644 docs/guides/spp-ctl/index.rst create mode 100644 docs/guides/spp-ctl/overview.rst create mode 100644 requirements.txt create mode 100755 src/spp-ctl/spp-ctl create mode 100644 src/spp-ctl/spp_ctl.py create mode 100644 src/spp-ctl/spp_proc.py create mode 100644 src/spp-ctl/spp_webapi.py -- Itsuro ODA