diff options
author | Alex Wang <alexw@nicira.com> | 2015-06-11 14:09:27 -0700 |
---|---|---|
committer | Alex Wang <alexw@nicira.com> | 2015-06-23 09:43:24 -0700 |
commit | 3935f67dbc6915dfc7ab01f97e0f8a874cfec151 (patch) | |
tree | 592d9d10e8a77b209d74a20e6de41d621d4ffa2a /tests | |
parent | f6a2e156196f76b7e8d9b20f125c2ddd63c41d5e (diff) | |
download | openvswitch-3935f67dbc6915dfc7ab01f97e0f8a874cfec151.tar.gz |
vtep-ctl: Use db-ctl-base.
This commit makes vtep-ctl use db-ctl-base to avoid duplicate code.
As an addition, a 'show' command is added to vtep-ctl.
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vtep-ctl.at | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/vtep-ctl.at b/tests/vtep-ctl.at index 40ee16e87..67007bf17 100644 --- a/tests/vtep-ctl.at +++ b/tests/vtep-ctl.at @@ -887,3 +887,25 @@ tcp:5.4.3.2\ntcp:8.9.10.11 ], [], [VTEP_CTL_CLEANUP]) VTEP_CTL_CLEANUP AT_CLEANUP + +AT_SETUP([show command]) +AT_KEYWORDS([vtep-ctl show]) +VTEP_CTL_SETUP +AT_CHECK([RUN_VTEP_CTL( + [set-manager tcp:4.5.6.7], + [add-ps a], + [add-port a a1], + [add-ls ls1], + [bind-ls a a1 100 ls1], + [set Physical_Switch a tunnel_ips=[[1.2.3.4]]])], [0], [ignore], [], [VTEP_CTL_CLEANUP]) + +AT_CHECK([vtep-ctl --timeout=5 -vreconnect:emer --db=unix:socket show | tail -n+2 | sed 's/=[[a-f0-9-]][[a-f0-9-]]*\}/=<ls>\}/' ], [0], [dnl + Manager "tcp:4.5.6.7" + Physical_Switch a + tunnel_ips: [["1.2.3.4"]] + Physical_Port "a1" + vlan_bindings: {100=<ls>} +], [], [VTEP_CTL_CLEANUP]) + +VTEP_CTL_CLEANUP +AT_CLEANUP |