Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH 0/9] Change SPP controller to use spp-ctl
@ 2018-10-18 11:25 ogawa.yasufumi
  2018-10-18 11:25 ` [spp] [PATCH 1/9] controller: add spp-ctl client for SPP controller ogawa.yasufumi
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ogawa.yasufumi @ 2018-10-18 11:25 UTC (permalink / raw)
  To: spp, ferruh.yigit, ogawa.yasufumi

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

SPP controller manages primary and secondary processes, and create TCP
sessions while launching. Other process is not allowed to manage SPP
processes directly without using management port. It is difficult to
manage from other process via management port for supporting detailed
operations.

It is better to manage SPP by spp-ctl and to change SPP controller as a
client because it is allowed to maange it from multiple controllers via
well-defined REST APIs. This update is to change SPP controller to a
client of spp-ctl.

For requesting spp-ctl, add SppCtlClient class to send and receive
messages as a client. SppCtlClient communicates with spp-ctl via port
7777 and using REST APIS. The previous TCP connections between from SPP
controller to each of SPP processes are obsolated for the update.

This series of patches also include refactors of 'shell.py' to improve
maintainability. Each of SPP commands, for instance pri or sec, are
moved to deligator classes SppPrimary or SppSecondary contained in
'commands' directory.

Yasufumi Ogawa (9):
  controller: add spp-ctl client for SPP controller
  controller: change controller to use spp-ctl
  spp-ctl: add IP address binding
  controller: add IP address and port binding
  controller: move pri command to SppPrimary
  controller: move sec command to SppSecondary
  controller: move topo command to SppTopo
  controller: move topo_resize command to SppTopo
  controller: move bye command to SppBye

 src/controller/commands/__init__.py   |   0
 src/controller/commands/bye.py        |  48 ++++
 src/controller/commands/pri.py        | 123 +++++++++
 src/controller/commands/sec.py        | 194 ++++++++++++++
 src/controller/{ => commands}/topo.py | 264 ++++++++++++------
 src/controller/conn_thread.py         | 251 ------------------
 src/controller/shell.py               | 485 ++++++++--------------------------
 src/controller/spp.py                 |  96 +------
 src/controller/spp_common.py          |  43 ---
 src/controller/spp_ctl_client.py      |  58 ++++
 src/spp-ctl/spp_ctl.py                |  15 +-
 src/spp-ctl/spp_webapi.py             |   5 +-
 12 files changed, 726 insertions(+), 856 deletions(-)
 create mode 100644 src/controller/commands/__init__.py
 create mode 100644 src/controller/commands/bye.py
 create mode 100644 src/controller/commands/pri.py
 create mode 100644 src/controller/commands/sec.py
 rename src/controller/{ => commands}/topo.py (53%)
 delete mode 100644 src/controller/conn_thread.py
 create mode 100644 src/controller/spp_ctl_client.py

-- 
2.13.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-10-18 11:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-18 11:25 [spp] [PATCH 0/9] Change SPP controller to use spp-ctl ogawa.yasufumi
2018-10-18 11:25 ` [spp] [PATCH 1/9] controller: add spp-ctl client for SPP controller ogawa.yasufumi
2018-10-18 11:25 ` [spp] [PATCH 2/9] controller: change controller to use spp-ctl ogawa.yasufumi
2018-10-18 11:25 ` [spp] [PATCH 3/9] spp-ctl: add IP address binding ogawa.yasufumi
2018-10-18 11:25 ` [spp] [PATCH 4/9] controller: add IP address and port binding ogawa.yasufumi
2018-10-18 11:25 ` [spp] [PATCH 5/9] controller: move pri command to SppPrimary ogawa.yasufumi
2018-10-18 11:25 ` [spp] [PATCH 6/9] controller: move sec command to SppSecondary ogawa.yasufumi
2018-10-18 11:25 ` [spp] [PATCH 7/9] controller: move topo command to SppTopo ogawa.yasufumi
2018-10-18 11:25 ` [spp] [PATCH 8/9] controller: move topo_resize " ogawa.yasufumi
2018-10-18 11:25 ` [spp] [PATCH 9/9] controller: move bye command to SppBye ogawa.yasufumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).