Ejemplo n.º 1
0
 def _verify_net_and_port(self, network, port, nets):
     if network not in nets:
         raise client.QuantumNotFoundException("no network with uuid %s"
                                                             % network)
     if port not in nets[network]['ports']:
         raise client.QuantumNotFoundException("no port with uuid %s"
                                                                % port)
Ejemplo n.º 2
0
 def _verify_net(self, network, nets):
     if network not in nets:
         raise client.QuantumNotFoundException("no network with uuid %s"
                                                             % network)