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

qfix: Dont exclude subnets from routes #1368

Merged
merged 2 commits into from
Oct 12, 2022
Merged

Conversation

denis-tingaikin
Copy link
Member

@denis-tingaikin denis-tingaikin commented Oct 12, 2022

Signed-off-by: denis-tingaikin denis.tingajkin@xored.com

Description

We shouldn't exclude whole subnets on refresh

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

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin force-pushed the fix-excludedprefixes-client branch from 9670784 to a9a6f10 Compare October 12, 2022 15:45
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin force-pushed the fix-excludedprefixes-client branch from bbb24d8 to b91e051 Compare October 12, 2022 15:55
var o, b = route.GetPrefixIPNet().Mask.Size()
if o != b {
continue
}
Copy link
Member

Choose a reason for hiding this comment

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

This seems to only compare the mask sizes between routes... I don't quite follow how this precludes us from including a Connection's routes/srcAddr/dstAddr in the exclude_prefixes for Refresh requests.

Copy link
Member Author

@denis-tingaikin denis-tingaikin Oct 12, 2022

Choose a reason for hiding this comment

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

as I can see srcAddr/dstAddr is already supported we only without a reason exclude a whole subnet from routes. This patch prevents excluding a subnet from routes.

Copy link
Member

Choose a reason for hiding this comment

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

That will work for now. But we need to be more specific in in the medium term because the routes from other vWires should be included :)

@edwarnicke edwarnicke merged commit d4d43ae into main Oct 12, 2022
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Oct 12, 2022
…k@main

PR link: networkservicemesh/sdk#1368

Commit: d4d43ae
Author: Denis Tingaikin
Date: 2022-10-12 19:11:51 +0300
Message:
  - qfix: Dont exclude subnets from routes (#1368)
* dont exclude subnets from routes

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
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