-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Policy Base Routing failure; Possible table ID collision.
Related issue: networkservicemesh/deployments-k8s/issues/9119 Added a mechanism to protect table ID selection from parallel runs. Signed-off-by: Laszlo Kiraly <[email protected]>
- Loading branch information
Showing
6 changed files
with
167 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
...rnel/networkservice/connectioncontextkernel/ipcontext/iprule/netns_rtable_conn_map.gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
pkg/kernel/networkservice/connectioncontextkernel/ipcontext/iprule/nsrtnextid.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) 2023 Nordix and/or its affiliates. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at: | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package iprule | ||
|
||
// NetnsRTableNextID stores Network namespace and Next Routing Table ID | ||
type NetnsRTableNextID struct { | ||
ns string | ||
nrtid int | ||
} | ||
|
||
// NewNetnsRTableNextID returns *NetnsRTableNextID entry | ||
func NewNetnsRTableNextID(ns string, nrtid int) *NetnsRTableNextID { | ||
return &NetnsRTableNextID{ | ||
ns: ns, | ||
nrtid: nrtid, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
pkg/kernel/networkservice/connectioncontextkernel/ipcontext/iprule/table_map.gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.