delete_network() in the db_base class handles deleting the subnets
associated with the networks.
https://github.com/openstack/quantum/blob/master/quantum/db/db_base_plugin_v2.py#L1033
On Tue, Jul 2, 2013 at 12:31 PM, Edgar Magana emag...@plumgrid.com wrote:
Folks,
When I create a network
: [openstack-dev] [Neutron] does delete_network call
delete_subnet automatically?
delete_network() in the db_base class handles deleting the subnets
associated with the networks.
https://github.com/openstack/quantum/blob/master/quantum/db/db_base_plugin_v
2.py#L1033
On Tue, Jul 2, 2013 at 12:31
automatically delete all subnets?
Edgar
From: Aaron Rosen aro...@nicira.com
Reply-To: OpenStack List openstack-dev@lists.openstack.org
Date: Tuesday, July 2, 2013 12:40 PM
To: OpenStack List openstack-dev@lists.openstack.org
Subject: Re: [openstack-dev] [Neutron] does delete_network call
Date: Tuesday, July 2, 2013 1:55 PM
To: OpenStack List openstack-dev@lists.openstack.org
Subject: Re: [openstack-dev] [Neutron] does delete_network call
delete_subnet automatically?
Good point. We should be calling delete_subnet() from delete_network() in
the db_base class rather than deleting
: [openstack-dev] [Neutron] does delete_network call
delete_subnet automatically?
Good point. We should be calling delete_subnet() from delete_network() in
the db_base class rather than deleting it directly from the database.
Aaron
On Tue, Jul 2, 2013 at 1:39 PM, Edgar Magana emag
Subject: Re: [openstack-dev] [Neutron] does delete_network call delete_subnet
automatically?
Good point. We should be calling delete_subnet() from delete_network() in the
db_base class rather than deleting it directly from the database.
Aaron
On Tue, Jul 2, 2013 at 1:39 PM, Edgar Magana
: Aaron Rosen aro...@nicira.com
Reply-To: OpenStack List openstack-dev@lists.openstack.org
Date: Tuesday, July 2, 2013 2:28 PM
To: OpenStack List openstack-dev@lists.openstack.org
Subject: Re: [openstack-dev] [Neutron] does delete_network call
delete_subnet automatically?
Yes, I think
: [openstack-dev] [Neutron] does delete_network call
delete_subnet automatically?
The call should be in the db_base class. If you call self.delete_subnet()
from the db_base class then it will call the delete_subnet() method from the
plugin if implement. Inheritance.
On Tue, Jul 2, 2013 at 3:15 PM, Edgar