Skip to content

Commit

Permalink
fix fwd proto
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi committed Jul 23, 2024
1 parent 3d799bf commit 396ff82
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 29 deletions.
Binary file removed examples/forward/.topology.textproto.swp
Binary file not shown.
56 changes: 36 additions & 20 deletions examples/forward/topology.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,29 @@ nodes: {
vendor_data {
[type.googleapis.com/forward.ForwardConfig] {
wires: {
a: Interface {
name: "eth1"
a: {
interface: {
name: "eth1"
}
}
z: LocalNode {
name: "fwd2"
interface: "eth1"
z: {
local_node: {
name: "fwd2"
interface: "eth1"
}
}
}
wires: {
a: LocalNode {
name: "fw2"
interface: "eth2"
a: {
local_node: {
name: "fw2"
interface: "eth2"
}
}
z: Interface {
name: "eth2"
z: {
interface: {
name: "eth2"
}
}
}
}
Expand All @@ -46,21 +54,29 @@ nodes: {
vendor_data {
[type.googleapis.com/forward.ForwardConfig] {
wires: {
a: Interface {
name: "eth2"
a: {
interface: {
name: "eth2"
}
}
z: LocalNode {
name: "fwd1"
interface: "eth2"
z: {
local_node: {
name: "fwd1"
interface: "eth2"
}
}
}
wires: {
a: LocalNode {
name: "fw1"
interface: "eth1"
a: {
local_node: {
name: "fw1"
interface: "eth1"
}
}
z: Interface {
name: "eth1"
z: {
interface: {
name: "eth1"
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions proto/forward.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ message ForwardConfig {
message Wire {
// The a endpoint serves as the client endpoint in the bidirectional stream.
Endpoint a = 1;
// The b endpoint serves as the server endpoint in the bidirectional stream.
Endpoint b = 2;
// The z endpoint serves as the server endpoint in the bidirectional stream.
Endpoint z = 2;
}

message Endpoint {
Expand Down
14 changes: 7 additions & 7 deletions proto/forward/forward.pb.go

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

0 comments on commit 396ff82

Please sign in to comment.