Revision d43a4dd9 test/py/cmdlib/instance_unittest.py

b/test/py/cmdlib/instance_unittest.py
218 218
                         nics=[{
219 219
                           constants.INIC_MODE: constants.NIC_MODE_ROUTED
220 220
                         }])
221
    self.ExecOpCodeExpectOpPrereqError(
222
      op, "Routed nic mode requires an ip address")
221
    self.ExecOpCode(op)
223 222

  
224 223
  def testValicMac(self):
225 224
    op = self.CopyOpCode(self.diskless_op,
......
2009 2008
                                {
2010 2009
                                  constants.INIC_MODE: constants.NIC_MODE_ROUTED
2011 2010
                                })])
2012
    self.ExecOpCodeExpectOpPrereqError(
2013
      op, "Cannot set the NIC IP address to None on a routed NIC")
2011
    self.ExecOpCode(op)
2014 2012

  
2015 2013
  def testModifyNicSetMac(self):
2016 2014
    op = self.CopyOpCode(self.op,

Also available in: Unified diff