Adding clarification comments
@@ -60,6 +60,7 @@ message AffinityPreference {
string predicate = 1;
}
+// ConnectionRequest is sent by a client or NSEP to build a connection.
message ConnectionRequest {
// Since connection request will trigger certain actions
// executed by NSM for a client to address idempotency, request_id
@@ -90,25 +91,33 @@ message ConnectionParameters {
repeated string route = 2;
}
+// ConnectionAccept is sent back by NSM as a reply to ConnectionRequest
+// accepted true will indicate that the connection is accepted, otherwise false
+// indicates that connection was refused and admission_error will provide details
+// why connection was refused.
message ConnectionAccept {
bool accepted = 1;
string admission_error = 2;
- repeated MechanismType accepted_type = 3;
+ ConnectionParameters connection_parameters = 3;
- KernelInterface kernel_interface = 4;
+ repeated MechanismType accepted_type = 4;
- VhostUserInterface vhost_user_interface = 5;
+ KernelInterface kernel_interface = 5;
- MemInterface mem_interface = 6;
+ VhostUserInterface vhost_user_interface = 6;
- SRIOV sriov_interface = 7;
+ MemInterface mem_interface = 7;
+
+ SRIOV sriov_interface = 8;
}
+// DiscoveryRequest requests NSM to send back all available/known NetworkServices
message DiscoveryRequest {
}
+// DiscoveryRespons carries a list of all available/known to NSM NetworkServices
message DiscoveryResponse {
repeated netmesh.NetworkService network_service = 1;
}
