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

Proto changes for host constraints #415

Merged
merged 6 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
26 changes: 26 additions & 0 deletions proto/topo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,32 @@ 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
// 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
KernelParam kernel_constraint = 1;
}
}

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

// BoundedInteger to capture the range of max or min for a particular setting
message BoundedInteger{
int64 max_value = 1;
int64 min_value = 2;
}

// Interface keys must be the same as the links a,z int.
Expand Down
Loading
Loading