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

Fix getting iptables rules #139

Merged

Conversation

rejmond
Copy link
Contributor

@rejmond rejmond commented May 12, 2022

Signed-off-by: Sergey Shlyanin sergey.shlyanin@xored.com

rulesString := m.GetParameters()[IPTables4NatTemplate]
rulesString, ok := m.GetParameters()[IPTables4NatTemplate]
if !ok {
return []string{}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return []string{}
return nil

Copy link
Member

Choose a reason for hiding this comment

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

Signed-off-by: Sergey Shlyanin <sergey.shlyanin@xored.com>
@rejmond rejmond force-pushed the fix-get-iptablesrules branch from e4d6479 to d603271 Compare May 12, 2022 16:36
@denis-tingaikin denis-tingaikin merged commit 8c875d6 into networkservicemesh:main May 12, 2022
nsmbot pushed a commit to networkservicemesh/sdk that referenced this pull request May 12, 2022
…i@main

PR link: networkservicemesh/api#139

Commit: 8c875d6
Author: Sergey Shlyanin
Date: 2022-05-12 23:38:20 +0700
Message:
  - Fix getting iptables rules (#139)
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.

2 participants