Dan Wendlandt 8fb4e6efe8 prevent invalid deletion of ports using by L3 devices
bug 1039947

The bug noticed that an admin user could delete a port that stored
the underlying IP allocation for a floating IP.  This patch prevents
the direction deletion of ports via the API for ports that are used as
router interfaces, router gateways, of for floating IPs.

Add a unit test to check such an invalid delete, and also updates
unit tests to avoid them tripping over the new checks.

Change-Id: Ief28e3181583428d55259275a7c21151a4a4fa9b
2012-08-31 04:29:12 -07:00
..
2012-08-31 05:25:13 +00:00
2012-08-17 01:48:39 +08:00
2012-08-22 16:34:04 -07:00
2012-08-14 23:27:56 +08:00
2012-03-16 23:19:22 +01:00
2012-08-14 23:27:56 +08:00