All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 2e2f2220 authored by Leigh B Stoller's avatar Leigh B Stoller

Add a generic NOMAPPING error code to tell the caller that the topology

could not be mapped to physical resources. Useful at the portal for
controlling what errors get reported to tbops.
parent f8070d79
......@@ -48,7 +48,7 @@ use vars qw(@ISA @EXPORT);
GENIRESPONSE_NOT_IMPLEMENTED
GENIRESPONSE_VLAN_UNAVAILABLE GENIRESPONSE_INSUFFICIENT_BANDWIDTH
GENIRESPONSE_INSUFFICIENT_NODES GENIRESPONSE_SERVER_UNAVAILABLE
GENIRESPONSE_INSUFFICIENT_MEMORY
GENIRESPONSE_INSUFFICIENT_MEMORY GENIRESPONSE_NO_MAPPING
XMLRPC_PARSE_ERROR XMLRPC_SERVER_ERROR XMLRPC_APPLICATION_ERROR
XMLRPC_SYSTEM_ERROR XMLRPC_TRANSPORT_ERROR);
......@@ -77,10 +77,11 @@ sub GENIRESPONSE_EXPIRED() {15; }
sub GENIRESPONSE_INPROGRESS() {16; }
sub GENIRESPONSE_ALREADYEXISTS() {17; }
sub GENIRESPONSE_VLAN_UNAVAILABLE(){24; }
sub GENIRESPONSE_INSUFFICIENT_BANDWIDTH(){25; }
sub GENIRESPONSE_INSUFFICIENT_NODES(){26; }
sub GENIRESPONSE_INSUFFICIENT_MEMORY(){27; }
sub GENIRESPONSE_NOT_IMPLEMENTED(){100; }
sub GENIRESPONSE_INSUFFICIENT_BANDWIDTH() {25; }
sub GENIRESPONSE_INSUFFICIENT_NODES() {26; }
sub GENIRESPONSE_INSUFFICIENT_MEMORY() {27; }
sub GENIRESPONSE_NO_MAPPING() {28; }
sub GENIRESPONSE_NOT_IMPLEMENTED() {100; }
# This is HTTP_SERVICE_UNAVAILABLE
sub GENIRESPONSE_SERVER_UNAVAILABLE() {503;}
sub GENIRESPONSE() { return $current_response; }
......@@ -115,6 +116,7 @@ my @GENIRESPONSE_STRINGS =
"Insufficient Bandwidth",
"Insufficient Nodes",
"Insufficient Memory",
"No Mapping Possible",
);
$GENIRESPONSE_STRINGS[GENIRESPONSE_NOT_IMPLEMENTED] = "Not Implemented";
sub GENIRESPONSE_STRING($)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment