Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed changePodIp func #559

Merged
merged 1 commit into from Apr 13, 2021
Merged

Conversation

davidefalcone1
Copy link
Contributor

Description

Function changePodIp forges a new IP taking the first 2 octets from the newPodCidr and the last 2 from the original Pod Ip. Since Liqo does support networks with random masks, this function needs to be modified: thanks to this PR, the function now takes a number of bits equal to the mask length from the newPodCidr and 32-mask bits from the old Pod IP.

@adamjensenbot
Copy link
Collaborator

Hi @davidefalcone1. Thanks for your PR!

I am @adamjensenbot.
You can interact with me issuing a slash command in the first line of a comment.
Currently, I understand the following commands:

  • /rebase: Rebase this PR onto the master branch
  • /merge: Merge this PR into the master branch
  • /ok-to-test Enable testing for PRs with base on forks

Make sure this PR appears in the liqo changelog, adding one of the following labels:

  • kind/breaking: 💥 Breaking Change
  • kind/feature: 🚀 New Feature
  • kind/bug: 🐛 Bug Fix
  • kind/cleanup: 🧹 Code Refactoring
  • kind/docs: 📝 Documentation

@davidefalcone1
Copy link
Contributor Author

/ok-to-test

@adamjensenbot
Copy link
Collaborator

Hi @davidefalcone1. Thanks for your PR!

I'm waiting for a Liqo member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

@davidefalcone1 davidefalcone1 linked an issue Apr 10, 2021 that may be closed by this pull request
@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 11, 2021
@davidefalcone1 davidefalcone1 marked this pull request as ready for review April 12, 2021 07:42
@palexster palexster requested a review from mlavacca April 12, 2021 08:10
Copy link
Member

@palexster palexster left a comment

Choose a reason for hiding this comment

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

/lgtm

@palexster
Copy link
Member

/rebase

newPodIpBuilder.WriteString(s)
newPodIpBuilder.WriteString(".")
}
// Parse newPodCidr
Copy link
Member

@palexster palexster Apr 13, 2021

Choose a reason for hiding this comment

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

The following logic may deserve to be in a separate function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ChangePodIp function forges a wrong pod IP
4 participants