示例#1
0
 def addNetwork(self, bridge, options):
     return configNetwork.addNetwork(bridge, **options)
示例#2
0
 def _addNetworkWithExc(self, netName, opts, errCode):
     with self.assertRaises(neterrors.ConfigNetworkError) as cneContext:
         configNetwork.addNetwork(netName, **opts)
     self.assertEqual(cneContext.exception.errCode, errCode)
示例#3
0
 def addNetwork(self, bridge, options):
     return configNetwork.addNetwork(bridge, **options)
示例#4
0
 def _addNetworkWithExc(self, netName, opts, errCode):
     with self.assertRaises(neterrors.ConfigNetworkError) as cneContext:
         configNetwork.addNetwork(netName, **opts)
     self.assertEqual(cneContext.exception.errCode, errCode)