-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alpine kne node for Alpine Virtual Switch (#470)
* Add Alpine KNE node * Add Alpine node type * Add alpine proto * Fix test topo * Add name of dataplane container * Fix pod creation * Add alpine test topology proto * Add unittest * Address review comments * Address review comments * Address review comments * Add Todo for constraint * Add Todo for constraint * Add Todo for constraint * Fix unittest and formatting * Fix * Fix * Fix * Fix linter error * Fix linter error
- Loading branch information
1 parent
3514841
commit 47b283f
Showing
9 changed files
with
766 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "twodut-alpine" | ||
nodes: { | ||
name: "alpine" | ||
vendor: ALPINE | ||
config: { | ||
image: "sonic-vs:latest" | ||
vendor_data { | ||
[type.googleapis.com/alpine.AlpineConfig] { | ||
containers: { | ||
name: "dataplane" | ||
image: "us-west1-docker.pkg.dev/openconfig-lemming/release/lucius:ga" | ||
command: "/lucius/lucius" | ||
args: "-alsologtostderr" | ||
} | ||
} | ||
} | ||
} | ||
services:{ | ||
key: 22 | ||
value: { | ||
name: "ssh" | ||
inside: 22 | ||
} | ||
} | ||
} | ||
nodes: { | ||
name: "host" | ||
vendor: HOST | ||
services:{ | ||
key: 22 | ||
value: { | ||
name: "ssh" | ||
inside: 22 | ||
} | ||
} | ||
} | ||
|
||
links: { | ||
a_node: "alpine" | ||
a_int: "eth1" | ||
z_node: "host" | ||
z_int: "eth1" | ||
} | ||
links: { | ||
a_node: "alpine" | ||
a_int: "eth2" | ||
z_node: "host" | ||
z_int: "eth2" | ||
} |
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,30 @@ | ||
// Copyright 2021 Google LLC | ||
// | ||
// 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. | ||
syntax = "proto3"; | ||
|
||
package alpine; | ||
|
||
option go_package = "github.com/openconfig/kne/proto/alpine"; | ||
|
||
// Alpine specific vendor data for KNE | ||
message AlpineConfig { | ||
repeated Container containers = 1; | ||
} | ||
|
||
message Container { | ||
string name = 1; | ||
string image = 2; | ||
repeated string command = 3; | ||
repeated string args = 4; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.