Github user nlivens commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1246#discussion_r62503776 --- Diff: server/src/com/cloud/network/guru/GuestNetworkGuru.java --- @@ -396,6 +396,16 @@ public NicProfile allocate(final Network network, NicProfile nic, final VirtualM return nic; } + /** + * Return a string representing network Cidr for the specifeid network + * @param guestNetwork + * @return valid network Cidr for the specified network + */ + protected String getValidNetworkCidr(Network guestNetwork){ --- End diff -- I think you should extract this method to another common class (e.g. NetworkModel) since this method can be reused over the different classes.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---