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

use vfconfig metadata for storing VF and veth interface name #12

Merged

Conversation

pperiyasamy
Copy link
Member

@pperiyasamy pperiyasamy commented Aug 27, 2021

uses vfconfig metadata service to store and retrieve VF and veth interface name and create veth pair with intermediate interface name so that parallel service requests from other clients don't fail due to interface name duplicates.

Signed-off-by: Periyasamy Palanisamy periyasamy.palanisamy@est.tech

Description

Issue link

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionallity
  • Documentation
  • Refactoring
  • CI

@@ -135,16 +156,14 @@ func newVETH(srcName, dstName string) *netlink.Veth {
}
}

// GetOvsInterfaceName get ovs interface name for the given connection.
func GetOvsInterfaceName(conn *networkservice.Connection, isClient bool) string {
// GetInterfaceName get appropriate interface name for the given connection.

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@Bolodya1997 yes, correct, but those names can be safely used inside container net namespace.
otherwise it would conflict with parallel service requests from different pods with nsm-1 as requested interface name. so this tries to have intermediate name for interface in the veth pair created on the host net namespace and it gets renamed later inside the container.
shall I rename method name something like GetVethPeerName() ?

Copy link
Member Author

Choose a reason for hiding this comment

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

as discussed, changed the method name into GetVethPeerName()

Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@est.tech>
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@est.tech>
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@est.tech>
@pperiyasamy pperiyasamy force-pushed the use-vfconfig-for-veth-pair branch from b37d115 to 133ffab Compare August 31, 2021 10:41
@pperiyasamy pperiyasamy merged commit 99a4975 into networkservicemesh:main Sep 1, 2021
@pperiyasamy pperiyasamy deleted the use-vfconfig-for-veth-pair branch September 1, 2021 07:53
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