Skip to content

Conversation

@pjohnst5
Copy link
Contributor

@pjohnst5 pjohnst5 commented Jun 6, 2023

Removing a redundant route added to Windows VMs for dualstackoverlay

Redundant route being removed:
netsh interface ipv4 add route "<overlay-subnet-prefix>" "<interface-name>" "<overlay-subnet-gateway>"

Example:
netsh interface ipv4 add route "10.244.0.0/16" "vEthernet (Ethernet 2)" "10.244.0.1"

This route is redundant, because prior to it being added, there is another route added with the same matching-prefix:
Route being added before redundant route:
netsh interface ipv4 add route "10.244.0.0/16" "vEthernet (Ethernet 2)" "0.0.0.0"

So the second route is rendered useless, and we don't need it

This was confirmed by @princepereira, so removing the redundant route (both for IPV4 and IPV6)

@pjohnst5 pjohnst5 marked this pull request as ready for review June 6, 2023 17:46
@pjohnst5 pjohnst5 requested a review from a team as a code owner June 6, 2023 17:46
@pjohnst5 pjohnst5 requested a review from behzad-mir June 6, 2023 17:46
Copy link
Contributor

@paulyufan2 paulyufan2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pjohnst5
Copy link
Contributor Author

pjohnst5 commented Jun 6, 2023

@princepereira could you review as well please? Thanks! Maybe mention the tests you did with this version of CNI

@paulyufan2 paulyufan2 force-pushed the paujohns/remove-redundant-route-overlay branch from 051c56f to 2e7b5ad Compare June 7, 2023 01:09
Copy link

@princepereira princepereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pjohnst5 pjohnst5 changed the title Remove redundant routes in overlay for windows nodes Remove redundant routes in dualstackoverlay for windows nodes Jun 7, 2023
@pjohnst5 pjohnst5 enabled auto-merge (squash) June 7, 2023 16:53
@tamilmani1989 tamilmani1989 disabled auto-merge June 7, 2023 20:37
@tamilmani1989 tamilmani1989 merged commit bcca3fe into Azure:master Jun 7, 2023
@pjohnst5 pjohnst5 deleted the paujohns/remove-redundant-route-overlay branch June 7, 2023 20:38
@tamilmani1989 tamilmani1989 added the cni Related to CNI. label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cni Related to CNI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants