Fix for Vlan doesn't match issue while adding IP range for the shared network without any IP range#10837
Conversation
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
… network without any IP range
c67649a to
4efa3af
Compare
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10837 +/- ##
==========================================
Coverage 15.17% 15.17%
- Complexity 11339 11349 +10
==========================================
Files 5414 5415 +1
Lines 475185 475591 +406
Branches 57991 58037 +46
==========================================
+ Hits 72105 72167 +62
- Misses 395018 395351 +333
- Partials 8062 8073 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13303 |
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
weizhouapache
left a comment
There was a problem hiding this comment.
code lgtm
not tested yet
server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
Show resolved
Hide resolved
|
[SF] Trillian test result (tid-13244)
|
|
[SF] Trillian Build Failed (tid-13275) |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13287)
|
| Long networkId = cmd.getNetworkID(); | ||
| Long physicalNetworkId = cmd.getPhysicalNetworkId(); | ||
|
|
||
| // Verify that network exists | ||
| Network network = null; | ||
| if (networkId != null) { | ||
| network = _networkDao.findById(networkId); | ||
| if (network == null) { | ||
| throw new InvalidParameterValueException("Unable to find network by id " + networkId); | ||
| } else { | ||
| zoneId = network.getDataCenterId(); | ||
| physicalNetworkId = network.getPhysicalNetworkId(); | ||
| } | ||
| } |
There was a problem hiding this comment.
can be a seperate method
| if (StringUtils.isBlank(vlanId)) { | ||
| vlanId = Vlan.UNTAGGED; | ||
| if (network != null & network.getTrafficType() == TrafficType.Guest) { | ||
| boolean connectivityWithoutVlan = isConnectivityWithoutVlan(network); | ||
| vlanId = getNetworkVlanId(network, connectivityWithoutVlan); | ||
| } | ||
| } |
There was a problem hiding this comment.
can be an extra method
|
@blueorangutan test keepEnv |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13302)
|
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13394 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13321)
|
… network without any IP range (apache#10837)

Description
This PR fixes Vlan doesn't match issue while adding IP range for the shared network without any IP range.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Before Fix:
After Fix:
How Has This Been Tested?
How did you try to break this feature and the system with this change?