Skip to content

Conversation

@Yatish-Sriram
Copy link

CON-4271 Updated getNetworkInterface for IPV6 support and the iSCSI discovery flow of HandleIscsiDiscovery and addIscsiPortBinding workflow

…iscovery flow of HandleIscsiDiscovery and addIscsiPortBinding workflow

Signed-off-by: yatish-sriram-pothuri <[email protected]>
Copy link
Collaborator

@rohit-balakrishna rohit-balakrishna left a comment

Choose a reason for hiding this comment

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

@Yatish-Sriram , please also push the test code that you wrote along with a small readme.md on how to use it. It would be helpful.


// formatIPWithPort formats an IP address with port, using brackets for IPv6
func formatIPWithPort(ip string, port int) string {
if strings.Contains(ip, ":") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can use the net.ParseIP(ip) function to validate the IP and use To4 or To6 function to check if it is IPv4 or V6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants