If the user's private network has the same CIDR as the public
network, there will be an error. The router is unable to set
the gateway properly when the private and public CIDR overlap.
This patch add setting 'ALLOWED_PRIVATE_SUBNET_CIDR' to decide
whether to restrict user private network cidr input. And admin
dashboard network panel was not restricted.
Example:
ALLOWED_PRIVATE_SUBNET_CIDR = {'ipv4': ['192.168.0.0/16',
'10.0.0.0/8'],
'ipv6': ['fc00::/7',]}
By default, leave the 'ipv4' and 'ipv6' with empty lists,
then user subnet cidr input will not be restricted.
DocImpact
Implements blueprint: restrict-private-network-input
Change-Id: I6b2ee58447d517c1c40344b8f4dd95968638da5b