Skip to content

Commit 0b06c0e

Browse files
author
Marc Odermatt
committed
fabrid demo wip
1 parent d68beba commit 0b06c0e

File tree

5 files changed

+583
-48
lines changed

5 files changed

+583
-48
lines changed

acceptance/common/topogen.bzl

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def topogen_test(
1111
src,
1212
topo,
1313
gateway = False,
14+
fabrid = False,
1415
debug = False,
1516
args = [],
1617
deps = [],
@@ -57,6 +58,10 @@ def topogen_test(
5758
if gateway:
5859
common_args.append("--setup-params='--sig'")
5960

61+
if fabrid:
62+
common_args.append("--setup-params='--fabrid'")
63+
common_args.append("--setup-params='--endhost'")
64+
6065
common_data = [
6166
"//scion-pki/cmd/scion-pki",
6267
"//tools:topogen",

demo/fabrid/BUILD.bazel

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ topogen_test(
77
name = "test",
88
src = "test.py",
99
args = [
10-
"--executable=drkey-demo:$(location //demo/drkey:drkey-demo)",
10+
"--executable=fabrid-demo:$(location //demo/fabrid:fabrid-demo)",
1111
],
12-
data = ["//demo/drkey:drkey-demo"],
12+
data = ["//demo/fabrid:fabrid-demo"],
1313
topo = "//topology:tiny4.topo",
14+
fabrid = True,
1415
)
1516

1617
go_library(
1718
name = "go_default_library",
1819
srcs = ["main.go"],
19-
importpath = "github.com/scionproto/scion/demo/drkey",
20+
importpath = "github.com/scionproto/scion/demo/fabrid",
2021
visibility = ["//visibility:private"],
2122
deps = [
2223
"//pkg/addr:go_default_library",
@@ -37,13 +38,13 @@ go_library(
3738
)
3839

3940
scion_go_binary(
40-
name = "drkey-demo",
41+
name = "fabrid-demo",
4142
embed = [":go_default_library"],
4243
visibility = ["//visibility:public"],
4344
)
4445

4546
go_binary(
46-
name = "drkey",
47+
name = "fabrid",
4748
embed = [":go_default_library"],
4849
visibility = ["//visibility:public"],
4950
)

demo/fabrid/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# DRKey demo
1+
# FABRID demo
22

33
This demo shows how two hosts can obtain a shared key with the DRKey system.
44
The "server" side host can locally derive keys for any other host.
@@ -19,7 +19,7 @@ The demo consists of the following steps:
1919
## Run the demo
2020

2121
1. [set up the development environment](https://docs.scion.org/en/latest/build/setup.html)
22-
1. `bazel test --test_output=streamed --cache_test_results=no //demo/drkey:test`
22+
1. `bazel test --test_output=streamed --cache_test_results=no //demo/fabrid:test`
2323

2424
Note: this demo works on any SCION network topology. To run the demo on a
2525
different network topology, modify the `topo` parameter in `BUILD.bazel` to

0 commit comments

Comments
 (0)