Revision 07e68848 test/py/cmdlib/instance_unittest.py
b/test/py/cmdlib/instance_unittest.py | ||
---|---|---|
180 | 180 |
self.ExecOpCodeExpectOpPrereqError( |
181 | 181 |
op, "If network is given, no mode or link is allowed to be passed") |
182 | 182 |
|
183 |
def testVlanWithWrongMode(self): |
|
184 |
op = self.CopyOpCode(self.diskless_op, |
|
185 |
nics=[{ |
|
186 |
constants.INIC_VLAN: ":1", |
|
187 |
constants.INIC_MODE: constants.NIC_MODE_BRIDGED |
|
188 |
}]) |
|
189 |
self.ExecOpCodeExpectOpPrereqError( |
|
190 |
op, "VLAN is given, but network mode is not openvswitch") |
|
191 |
|
|
192 | 183 |
def testAutoIpNoNameCheck(self): |
193 | 184 |
op = self.CopyOpCode(self.diskless_op, |
194 | 185 |
nics=[{ |
Also available in: Unified diff