Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tcloud
networking-capnet
Commits
f5a72aca
Commit
f5a72aca
authored
May 05, 2016
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a real Exception, instead of double-faulting.
parent
adca97f0
Pipeline
#1238
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
compute_capnet/virt/libvirt/vif.py
compute_capnet/virt/libvirt/vif.py
+2
-3
No files found.
compute_capnet/virt/libvirt/vif.py
View file @
f5a72aca
...
...
@@ -46,9 +46,8 @@ class CapnetLibvirtVIFDriver(nova.virt.libvirt.vif.LibvirtGenericVIFDriver): #,
LOG
.
info
(
"vif: %s"
%
(
str
(
vif
)))
bridge
=
vif
[
'network'
][
'bridge'
]
if
not
bridge
:
LOG
.
error
(
"no bridge %s for network %s"
%
(
bridge
,
network_id
))
raise
exception
.
NetworkMissingPhysicalNetwork
(
network_uuid
=
vif
[
'network'
][
'id'
])
LOG
.
error
(
"no bridge for network %s"
%
(
network_id
,))
raise
Exception
(
"no bridge for network %s"
%
(
network_id
,))
else
:
LOG
.
info
(
"using bridge %s for network %s"
%
(
bridge
,
network_id
))
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment