~ttx/nova/privsep2

Viewing all changes in revision 1431.

  • Committer: Tarmac
  • Author(s): John Tran
  • Date: 2011-08-14 04:10:26 UTC
  • mfrom: (1337.1.17 lp817178)
  • Revision ID: tarmac-20110814041026-8mpbataqij5xbflh
added logic to make the creation of networks (IPv4 only) validation a bit smarter:
  - detects if the cidr is already in use
  - detects if any existing smaller networks are within the range of requested cidr(s)
  - detects if splitting a supernet into # of num_networks && network_size will fit
  - detects if requested cidr(s) are within range of already existing supernet (larger cidr).

IPv6 logic remains intact yet had not been improved by this code.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: