-
Notifications
You must be signed in to change notification settings - Fork 162
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
SPKI: Generate templates from topology file #3079
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 9 of 9 files at r1.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @oncilla)
go/tools/scion-pki/internal/tmpl/topo.go, line 139 at r1 (raw file):
m[ia.I] = struct{}{} } var isds []addr.ISD
Why does this function return a slice, when the return value is just used to iterate over?
go/tools/scion-pki/internal/v2/tmpl/topo.go, line 122 at r1 (raw file):
} // topoFile is used to parse the topology description.
We should probably have this in a shared library somewhere at some point. (certainly not for this PR)
go/tools/scion-pki/internal/v2/tmpl/topo.go, line 132 at r1 (raw file):
m[ia.I] = struct{}{} } var isds []addr.ISD
ditto
This PR enables templating the isd.ini and as.ini from `.topo` files. To template the config files for the `Default.topo` run `scion-pki v2 tmpl topo topology/Default.topo`.
4abbf2e
to
021b69e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @lukedirtwalker)
go/tools/scion-pki/internal/tmpl/topo.go, line 139 at r1 (raw file):
Previously, lukedirtwalker (Lukas Vogel) wrote…
Why does this function return a slice, when the return value is just used to iterate over?
Done.
go/tools/scion-pki/internal/v2/tmpl/topo.go, line 122 at r1 (raw file):
Previously, lukedirtwalker (Lukas Vogel) wrote…
We should probably have this in a shared library somewhere at some point. (certainly not for this PR)
Sure. If/when we write the generator in go.
go/tools/scion-pki/internal/v2/tmpl/topo.go, line 132 at r1 (raw file):
Previously, lukedirtwalker (Lukas Vogel) wrote…
ditto
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
This PR enables templating the isd.ini and as.ini from
.topo
files.To template the config files for the
Default.topo
runscion-pki v2 tmpl topo topology/Default.topo
.This change is