Added OutboundNAT policy support for Windows#2070
Conversation
|
Please sign your commits following these rules: $ git clone -b "master" git@github.com:nwoodmsft/libnetwork.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -fAmending updates the existing PR. You DO NOT need to open a new one. |
…options Signed-off-by: Nick Wood <nwood@microsoft.com>
Codecov Report
@@ Coverage Diff @@
## master #2070 +/- ##
=========================================
Coverage ? 40.51%
=========================================
Files ? 138
Lines ? 22172
Branches ? 0
=========================================
Hits ? 8983
Misses ? 11872
Partials ? 1317Continue to review full report at Codecov.
|
|
LGTM |
|
ping @fcrisciani @mavenugo ; Flavio, Madhu, can you review please? Note that this change affects windows only. |
ddebroy
left a comment
There was a problem hiding this comment.
LGTM overall with one suggestion.
| } | ||
| config.VSID = uint(vsid) | ||
| case EnableOutboundNat: | ||
| if system.GetOSVersion().Build <= 16236 { |
There was a problem hiding this comment.
Can the build number 16236 be defined as a global constant? It seems to be used at a couple of places.
|
Comment can be addressed in a separate Pr, merging this one |
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070), and In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparissons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070), and In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparissons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070) In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparisons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070) In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparisons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070) In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparisons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070) In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparisons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070) In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparisons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070) In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparisons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070) In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparisons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This replaces the hard-coded build numbers with constants that are now defined in hcsshim. Note that build 16236 is not defined in the package, and may be referring to RS2 (which was a client-only release). Checks for this version were added in commits; a9db5c5 (moby#1900), and 6681c02 (moby#2070) In a9db5c5, it is described that the intent was to allow these options only in Windows RS3 so I changed the comparisons to match RS3 (and up), or disable the option on anything older than RS3. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This change adds support for OutboundNAT policy to the Windows driver passed via a generic option.