[spp] [PATCH] controller: add complete for exit in vf and mirror

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Tue Jan 15 04:29:21 CET 2019


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

Exit command is support in spp_vf and spp_mirror, but not for completion
in vf and mirror commands. This update is to add completion for them.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
 src/controller/commands/mirror.py | 1 +
 src/controller/commands/vf.py     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/controller/commands/mirror.py b/src/controller/commands/mirror.py
index a01e1eb..b5b7a1b 100644
--- a/src/controller/commands/mirror.py
+++ b/src/controller/commands/mirror.py
@@ -15,6 +15,7 @@ class SppMirror(object):
     # All of commands and sub-commands used for validation and completion.
     MIRROR_CMDS = {
             'status': None,
+            'exit': None,
             'component': ['start', 'stop'],
             'port': ['add', 'del']}
 
diff --git a/src/controller/commands/vf.py b/src/controller/commands/vf.py
index 01795a5..e715a17 100644
--- a/src/controller/commands/vf.py
+++ b/src/controller/commands/vf.py
@@ -15,6 +15,7 @@ class SppVf(object):
     # All of commands and sub-commands used for validation and completion.
     VF_CMDS = {
             'status': None,
+            'exit': None,
             'component': ['start', 'stop'],
             'port': ['add', 'del'],
             'classifier_table': ['add', 'del']}
-- 
2.17.1



More information about the spp mailing list