Broadcast URI not set to vxlan, but vlan (Fix #3040)#4190
Conversation
0f9efed to
2c3a41c
Compare
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔debian. JID-1498 |
| * @return Broadcast URI, e.g. 'vlan://vlan_ID' or 'vxlan://vlxan_ID' | ||
| */ | ||
| protected URI encodeVlanIdIntoBroadcastUri(String vlanId, PhysicalNetwork pNtwk) { | ||
| if(StringUtils.isNotBlank(pNtwk.getIsolationMethods().get(0))) { |
There was a problem hiding this comment.
I got wondering if there could be more than one isolation method on a network. Considering that this is a List of isolation methods. I assume that to get into a VLAN conditional (the ones that this method is called) there will be only one isolation method, either VLAN or VXLAN.
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos7 ✔debian. JID-1604 |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔debian. JID-1608 |
|
LGTM based on the code |
|
@GabrielBrascher did you try against 4.14, somehow I remember this was fixed recently? Thanks. |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos7 ✔debian. JID-1657 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2598)
|
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-1870 |
|
(centos8 pkg failure is expected as it's not supported on 4.13/4.14 and before) |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2680)
|
yadvr
left a comment
There was a problem hiding this comment.
LGTM, but need another pair of eyes or four
wido
left a comment
There was a problem hiding this comment.
LGTM based on code and feedback from @GabrielBrascher
| * @return Broadcast URI, e.g. 'vlan://vlan_ID' or 'vxlan://vlxan_ID' | ||
| */ | ||
| protected URI encodeVlanIdIntoBroadcastUri(String vlanId, PhysicalNetwork pNtwk) { | ||
| if(StringUtils.isNotBlank(pNtwk.getIsolationMethods().get(0))) { |
There was a problem hiding this comment.
@GabrielBrascher Should we check if pNtwk is null? This could potentially cause a NPE; and the getIsolationMethods() is also a valid list with at least one item
There was a problem hiding this comment.
@rhtyd thanks for the review :-)
Answering your question: I did not add null verification on the respective parameter due to the fact that both methods that call this one already validate the private network
-
the physical network
pNtwkis validated at NetworkOrchestrator.java#L2196; -
the other method that calls
encodeVlanIdIntoBroadcastUrialso validates the private network at this line NetworkOrchestrator.java#L2397.
However, considering that this method could be reused, I have no problem in adding null validations.
There was a problem hiding this comment.
Actually, NetworkOrchestrator.java#L2397 is not exactly a null validation. I will add a null verification @rhtyd.
There was a problem hiding this comment.
@GabrielBrascher please add the null validation, thnx
|
@GabrielBrascher can you advise when this is ready for merging, thnx |
|
@rhtyd I am a bit offline this week due to vacation. I Will get back at 21st September. As soon as I get back I will add the null validation and update this PR. Thanks! |
|
@rhtyd updated the code with the null validation. |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2056 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2828)
|
|
Will merge and then need to kick tests on 4.14 and master |
Description
This PR sets properly Broadcast URI to
vxlan://vxlan_idwhen the physical network is of VXLAN.Fixes: #3040
Description of issue #3040:
Types of changes
Screenshots (if appropriate):
Prior to the fix:

After the fix:

How Has This Been Tested?