Use source IP from same subnet for snat#5376
Conversation
When snat is configured on a vm in a subnet then the source ip should be taken from the same subnet rather than from random other subnet.
|
code lgtm |
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 1073 |
|
@blueorangutan test |
|
@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1877)
|
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@ravening @weizhouapache can you check/test the same fix for isolated networks too? |
|
Trillian test result (tid-1916)
|
@rhtyd I have confirmed this PR does not cause issue in isolated networks. (the iptables rules are same, see below).
|
This PR...
Description
Fixes #5365
When snat is configured on a vm in a subnet then the source
ip should be taken from the same subnet rather than from
random other subnet.
Output before the fix and steps to reproduce are mentioned in the issue
Output after the fix
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?