Enhancement: Allow creating network with duplicate name#3807
Conversation
17b087d to
43a5b71
Compare
DaanHoogland
left a comment
There was a problem hiding this comment.
nioce code
tests included
pudding needs eating
|
@DaanHoogland can this be merged? |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@ravening "pudding needs eating" so i am starting a full regression suite. (if it comes back good i'm fine with it.) |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-652 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-810)
|
|
I am not investing time in testing this now, but regrtession passes on all platforms. feel free to merge, @wido @weizhouapache ? |
| "allow.duplicate.networkname", "true", "Allow creating networks with same name in account", true, ConfigKey.Scope.Account); | ||
| private static final ConfigKey<Boolean> AllowEmptyStartEndIpAddress = new ConfigKey<Boolean>("Advanced", Boolean.class, | ||
| "allow.empty.start.end.ipaddress", "true", "Allow creating network without mentioning start and end IP address", | ||
| true, ConfigKey.Scope.Account); |
There was a problem hiding this comment.
@ravening for backward compatibility, should this be false?
There was a problem hiding this comment.
@rhtyd In the current/default behavior we can create network without mentioning the start and end IP address. So the default value is "true". If the default value is "false" then it means we cant create a network with an empty start and end IP address which is not backward compatible.
|
@ravening if the newly added test |
Add a global setting to disable creating networks with same name in an account Add a global setting to disable creating network without mentioning the start and end IPv4 or IPv6 address By default we can create networks with the same name in the account. Sometimes we should not create the networks with same name. This change adds a global setting which prevents creating the network with same name. The default value is true and set it to false to prevent creating network with same names. Also its possible to create a shared network without mentioning the start and the end IPv4 or IPv6 address. This change adds a global setting which prevents creating a shared network without specifying the start and the end IPv4 or IPv6 address
43a5b71 to
8525f77
Compare
@rhtyd moved the marvin test to |
|
Thanks @ravening I'll merge this as soon as Travis (simulator) passes (rekicked the job). |
Add a global setting to disable creating networks with same name in an account Add a global setting to disable creating network without mentioning the start and end IPv4 or IPv6 address By default we can create networks with the same name in the account. Sometimes we should not create the networks with same name. This change adds a global setting which prevents creating the network with same name. The default value is true and set it to false to prevent creating network with same names. Also its possible to create a shared network without mentioning the start and the end IPv4 or IPv6 address. This change adds a global setting which prevents creating a shared network without specifying the start and the end IPv4 or IPv6 address
Add a global setting to disable creating networks with
same name in an account
Add a global setting to disable creating network without
mentioning the start and end IPv4 or IPv6 address
Description
By default we can create networks with the same name in the account. Sometimes we should not create the networks with same name. This change adds a global setting which prevents creating the network with same name. The default value is true and set it to false to prevent creating network with same names.
Also its possible to create a shared network without mentioning the start and the end IPv4 or IPv6 address. This change adds a global setting which prevents creating a shared network without specifying the start and the end IPv4 or IPv6 address
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Creating a network with same names
1 . Set the global setting
allow.duplicate.networknameto true2. Create a new network with the name "test".
3. Try to create another network with the same name. This should create the second network with the same name
4. Now set the above global setting value to false
5. Try to create another network with same name.
6. No exception will be thrown while creating the network with same name
Creating a network without specifying the start and end IPv4 or IPv6 address
allow.empty.start.end.ipaddressto true