summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-02-19 23:06:13 +0000
committerGerrit Code Review <review@openstack.org>2013-02-19 23:06:13 +0000
commit445a53c3454e402f1d4865178e01bffdf2a239e8 (patch)
treef252fa69fededa82f7b0391e7a50a8940b20bc41 /nova
parentb68bea24c5b71d9e6583b2cf616f842cbd666bfb (diff)
parent5fef12986de72e6ceb901addf84d927b636fbbfd (diff)
downloadnova-445a53c3454e402f1d4865178e01bffdf2a239e8.tar.gz
nova-445a53c3454e402f1d4865178e01bffdf2a239e8.tar.xz
nova-445a53c3454e402f1d4865178e01bffdf2a239e8.zip
Merge "Remove unused nova.db.api:network_get_by_bridge"
Diffstat (limited to 'nova')
-rw-r--r--nova/db/api.py5
-rw-r--r--nova/db/sqlalchemy/api.py10
-rw-r--r--nova/network/manager.py6
3 files changed, 3 insertions, 18 deletions
diff --git a/nova/db/api.py b/nova/db/api.py
index 0abe63cf8..e134700e5 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -838,11 +838,6 @@ def network_get_associated_fixed_ips(context, network_id, host=None):
return IMPL.network_get_associated_fixed_ips(context, network_id, host)
-def network_get_by_bridge(context, bridge):
- """Get a network by bridge or raise if it does not exist."""
- return IMPL.network_get_by_bridge(context, bridge)
-
-
def network_get_by_uuid(context, uuid):
"""Get a network by uuid or raise if it does not exist."""
return IMPL.network_get_by_uuid(context, uuid)
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index 40d0c2334..646f237f4 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -2237,16 +2237,6 @@ def _network_get_query(context, session=None):
@require_admin_context
-def network_get_by_bridge(context, bridge):
- result = _network_get_query(context).filter_by(bridge=bridge).first()
-
- if not result:
- raise exception.NetworkNotFoundForBridge(bridge=bridge)
-
- return result
-
-
-@require_admin_context
def network_get_by_uuid(context, uuid):
result = _network_get_query(context).filter_by(uuid=uuid).first()
diff --git a/nova/network/manager.py b/nova/network/manager.py
index 22b04c40f..410f7a2cb 100644
--- a/nova/network/manager.py
+++ b/nova/network/manager.py
@@ -1398,9 +1398,9 @@ class FlatManager(NetworkManager):
The idea is to create a single network for the host with a command like:
nova-manage network create 192.168.0.0/24 1 256. Creating multiple
networks for for one manager is currently not supported, but could be
- added by modifying allocate_fixed_ip and get_network to get the a network
- with new logic instead of network_get_by_bridge. Arbitrary lists of
- addresses in a single network can be accomplished with manual db editing.
+ added by modifying allocate_fixed_ip and get_network to get the network
+ with new logic. Arbitrary lists of addresses in a single network can
+ be accomplished with manual db editing.
If flat_injected is True, the compute host will attempt to inject network
config into the guest. It attempts to modify /etc/network/interfaces and