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

[sdk-vpp#314] Support empty chains #1044

Merged

Conversation

Bolodya1997
Copy link

@Bolodya1997 Bolodya1997 commented Jul 29, 2021

Description

Add support for empty subchains (networkservice, NS registry, NSE registry):

var serversA, serversB, serversC []networkservice.Server
...
server := chain.NewServer(
    chain.NewServer(serversA...), // <-- now can be empty
    chain.NewServer(serversB...), // <-- now can be empty
    chain.NewServer(serversC...), // <-- now can be empty
)

Issue link

Needed for networkservicemesh/sdk-vpp#314.

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

Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

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

Could you provide an example on how you plan to use this chain element in context sdk-vpp#314? Thanks.

Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
@Bolodya1997
Copy link
Author

@denis-tingaikin
Removed refactoring from this PR.

@denis-tingaikin denis-tingaikin merged commit 1fce3fe into networkservicemesh:main Aug 13, 2021
nsmbot pushed a commit to networkservicemesh/cmd-nse-icmp-responder that referenced this pull request Aug 13, 2021
…k@main

PR link: networkservicemesh/sdk#1044

Commit: 1fce3fe
Author: Vladimir Popov
Date: 2021-08-13 17:56:11 +0700
Message:
  - Support empty chains (#1044)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Aug 13, 2021
…k@main

PR link: networkservicemesh/sdk#1044

Commit: 1fce3fe
Author: Vladimir Popov
Date: 2021-08-13 17:56:11 +0700
Message:
  - Support empty chains (#1044)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Aug 13, 2021
…k@main

PR link: networkservicemesh/sdk#1044

Commit: 1fce3fe
Author: Vladimir Popov
Date: 2021-08-13 17:56:11 +0700
Message:
  - Support empty chains (#1044)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Aug 13, 2021
…k@main

PR link: networkservicemesh/sdk#1044

Commit: 1fce3fe
Author: Vladimir Popov
Date: 2021-08-13 17:56:11 +0700
Message:
  - Support empty chains (#1044)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Aug 13, 2021
…k@main

PR link: networkservicemesh/sdk#1044

Commit: 1fce3fe
Author: Vladimir Popov
Date: 2021-08-13 17:56:11 +0700
Message:
  - Support empty chains (#1044)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Aug 13, 2021
…k@main

PR link: networkservicemesh/sdk#1044

Commit: 1fce3fe
Author: Vladimir Popov
Date: 2021-08-13 17:56:11 +0700
Message:
  - Support empty chains (#1044)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Aug 13, 2021
…k@main

PR link: networkservicemesh/sdk#1044

Commit: 1fce3fe
Author: Vladimir Popov
Date: 2021-08-13 17:56:11 +0700
Message:
  - Support empty chains (#1044)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Aug 13, 2021
…k@main

PR link: networkservicemesh/sdk#1044

Commit: 1fce3fe
Author: Vladimir Popov
Date: 2021-08-13 17:56:11 +0700
Message:
  - Support empty chains (#1044)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Aug 13, 2021
…k@main

PR link: networkservicemesh/sdk#1044

Commit: 1fce3fe
Author: Vladimir Popov
Date: 2021-08-13 17:56:11 +0700
Message:
  - Support empty chains (#1044)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
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.

3 participants