[spp] [PATCH 0/9] Update port management

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Mon Mar 12 06:35:15 CET 2018


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

To fix the problem of unexpected port ID, change assigning ports with
from port ID to resource ID as described below.

  spp > sec 1;patch phy:0 ring:0

Secondary's status message is changed from
    
  spp > sec 1;status
  port_id:0,on,PHY,outport:none
  port_id:1,on,PHY,outport:none
  port_id:2,on,RING(0),outport:none

to be more simplified YAML like style.

  spp > sec 1;status
  status: idling
  ports:
    - 'phy:0 -> ring:0'
    - 'phy:1'
    - 'ring:0 -> phy:1'

topo and topo_subgraph commands are also updated for this changes.


  controller: change displaying status
  shared: update print_active_ports
  spp_nfv: change format displaying status
  spp_vm: change format displaying status
  controller: add delimiter for topo command
  controller: update Shell for topo_subgraph
  controller: update generating graph
  controller: update topo command
  shared: fix bug for print port status

 src/controller/conn_thread.py |   4 +-
 src/controller/shell.py       |  61 +++++++++--
 src/controller/spp_common.py  |   3 +
 src/controller/topo.py        | 246 ++++++++++++++++++++++--------------------
 src/nfv/nfv.c                 |   6 +-
 src/shared/common.c           |  84 +++++++++++----
 src/shared/common.h           |   2 +-
 src/vm/main.c                 |   7 +-
 8 files changed, 260 insertions(+), 153 deletions(-)

-- 
2.7.4



More information about the spp mailing list