Skip to content

Commit

Permalink
fix trailing whitespace and update comment (#418)
Browse files Browse the repository at this point in the history
* fix trailing whitespace and update comment

* fix lint
  • Loading branch information
alexmasi authored Aug 17, 2023
1 parent cf04e38 commit f2da5fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
19 changes: 10 additions & 9 deletions proto/topo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -81,30 +81,31 @@ message Node {
// If interfaces is empty the interfaces defined in the links portion of the
// topology will be populated into the node.
map<string, Interface> interfaces = 12;
// Any host constraints required by the node. These may not be required by a
// Any host constraints required by the node. These may not be required by a
// vendor, but it can be used to provide requirements for the node.
repeated HostConstraint host_constraints = 13;
}

// HostConstraint is a constraint on the host where the node is running.
message HostConstraint{
oneof constraint{
// Includes the required sysctl settings that need to be configured
message HostConstraint {
oneof constraint {
// Includes the required kernel parameters that need to be configured.
KernelParam kernel_constraint = 1;
}
}

// Kernel parameter for Sysctl settings for the host
message KernelParam{
// KernelParam is a parameter on the host kernel.
message KernelParam {
// MIB style name of the kernel state to constrain.
string name = 1;
oneof ConstraintType{
oneof ConstraintType {
BoundedInteger bounded_integer = 2;
}
}

// BoundedInteger to capture the range of max or min for a particular setting
message BoundedInteger{
// BoundedInteger to capture the range of max or min for a particular
// constraint.
message BoundedInteger {
int64 max_value = 1;
int64 min_value = 2;
}
Expand Down
7 changes: 4 additions & 3 deletions proto/topo/topo.pb.go

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

0 comments on commit f2da5fc

Please sign in to comment.