summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYichen Wang <yicwang@cisco.com>2018-01-23 16:02:29 -0800
committerYichen Wang <yicwang@cisco.com>2018-01-23 16:04:12 -0800
commit0268d1ab252ebcb6d97c3009005a1e259aa512e4 (patch)
treed7ff2003295cc515450b51fdbbb3536dd8b34b6e
parent5a7cb16e9b178ee70b29a554fcbd6f582a1f031a (diff)
[NFVBENCH-63] Make sure CLI overrides the default configs
Change-Id: I5e94f130758d3c1dbf6aaeeda276463576b97394 Signed-off-by: Yichen Wang <yicwang@cisco.com>
-rw-r--r--nfvbench/nfvbench.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py
index 18bdc70..7d2e037 100644
--- a/nfvbench/nfvbench.py
+++ b/nfvbench/nfvbench.py
@@ -519,6 +519,10 @@ def main():
config.service_chain = opts.service_chain
if opts.service_chain_count:
config.service_chain_count = opts.service_chain_count
+ if opts.no_vswitch_access:
+ config.no_vswitch_access = opts.no_vswitch_access
+ if opts.no_int_config:
+ config.no_int_config = opts.no_int_config
if opts.use_sriov_middle_net:
if (not config.sriov) or (not config.service_chain == ChainType.PVVP):
id='n124' href='#n124'>124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245