-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: vppcalls and handler version registration (#1572)
* Update govpp Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Refactor vppcalls version registration and introduce vpp package Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Update integration tests Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Satisfy gopher Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Make vmxnet and gtpu plugins optionable Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Fix integration tests Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Satisfy gopher Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Fix dep check Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Address reports from golangci Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Remove unused functions Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Use test context in unit tests Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Create sub-module for managing tool deps Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Move tools Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Fix some warnings Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Resolve comments Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Cleanup commented code Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Fix integration tests for srv6 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
- Loading branch information
1 parent
c40280a
commit 75b1785
Showing
188 changed files
with
3,917 additions
and
2,767 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
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,34 @@ | ||
// Copyright (c) 2019 Cisco and/or its affiliates. | ||
// | ||
// 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 app | ||
|
||
import ( | ||
"log" | ||
"strings" | ||
"testing" | ||
|
||
"go.ligato.io/vpp-agent/v2/plugins/vpp" | ||
) | ||
|
||
func TestHandlers(t *testing.T) { | ||
handlers := vpp.GetHandlers() | ||
|
||
log.Printf("listing %d handlers:", len(handlers)) | ||
|
||
for h, handler := range handlers { | ||
versions := strings.Join(handler.Versions(), ", ") | ||
log.Printf(" - %s (%v)", h, versions) | ||
} | ||
} |
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
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
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
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
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
Oops, something went wrong.