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

Alpine kne node for Alpine Virtual Switch #470

Merged
merged 20 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions examples/alpine/alpine.pb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "twodut-alpine"
nodes: {
name: "alpine"
vendor: ALPINE
config: {
image: "sonic-vs:latest"
sonikajindal marked this conversation as resolved.
Show resolved Hide resolved
command: ["go", "run", "main.go"]
sonikajindal marked this conversation as resolved.
Show resolved Hide resolved
vendor_data {
[type.googleapis.com/alpine.AlpineDataplaneConfig] {
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
config: {
image: "alpine-host:latest"
}
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"
}
26 changes: 26 additions & 0 deletions proto/alpine.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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 AlpineDataplaneConfig {
sonikajindal marked this conversation as resolved.
Show resolved Hide resolved
string name = 1;
string image = 2;
repeated string command = 3;
repeated string args = 4;
}
187 changes: 187 additions & 0 deletions proto/alpine/alpine.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions proto/generate.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package proto

//go:generate protoc --go_out=./alpine --go_opt=paths=source_relative ./alpine.proto
//go:generate protoc --go_out=./topo --go_opt=paths=source_relative ./topo.proto
//go:generate protoc --go_out=./ceos --go_opt=paths=source_relative ./ceos.proto
//go:generate protoc --go_out=./controller --go-grpc_out=./controller --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative ./controller.proto
Expand Down
2 changes: 2 additions & 0 deletions proto/topo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ enum Vendor {
GOBGP = 8;
NOKIA = 9;
OPENCONFIG = 10;
ALPINE = 11;
}

// Node is a single container inside the topology
Expand All @@ -62,6 +63,7 @@ message Node {
CISCO_XRD = 12;
CISCO_E8000 = 13;
LEMMING = 14;
ALPINE = 15;
sonikajindal marked this conversation as resolved.
Show resolved Hide resolved
}
string name = 1; // Name of the node in the topology. Must be unique.
Type type = 2 [deprecated = true];
Expand Down
Loading