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 4 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
28 changes: 28 additions & 0 deletions proto/topo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,34 @@ 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 topology is running.
NehaManjunath marked this conversation as resolved.
Show resolved Hide resolved
message HostConstraint{
oneof constraint{
// Includes the required sysctl settings that need to be configured
KernelParam sysctl_constraint = 1;
NehaManjunath marked this conversation as resolved.
Show resolved Hide resolved
}
}

// Kernel parameter for Sysctl settings for the host
message KernelParam{
// Actual name of the kernel parameter for sysctl setting
NehaManjunath marked this conversation as resolved.
Show resolved Hide resolved
string name = 1;
// Type of the sysctl setting which could be an array,
NehaManjunath marked this conversation as resolved.
Show resolved Hide resolved
// string, a range of integers etc.
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