FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
api_errno.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef included_vnet_api_errno_h
16 #define included_vnet_api_errno_h
17 
18 #define foreach_vnet_api_error \
19 _(UNSPECIFIED, -1, "Unspecified Error") \
20 _(INVALID_SW_IF_INDEX, -2, "Invalid sw_if_index") \
21 _(NO_SUCH_FIB, -3, "No such FIB / VRF") \
22 _(NO_SUCH_INNER_FIB, -4, "No such inner FIB / VRF") \
23 _(NO_SUCH_LABEL, -5, "No such label") \
24 _(NO_SUCH_ENTRY, -6, "No such entry") \
25 _(INVALID_VALUE, -7, "Invalid value") \
26 _(INVALID_VALUE_2, -8, "Invalid value #2") \
27 _(UNIMPLEMENTED, -9, "Unimplemented") \
28 _(INVALID_SW_IF_INDEX_2, -10, "Invalid sw_if_index #2") \
29 _(SYSCALL_ERROR_1, -11, "System call error #1") \
30 _(SYSCALL_ERROR_2, -12, "System call error #2") \
31 _(SYSCALL_ERROR_3, -13, "System call error #3") \
32 _(SYSCALL_ERROR_4, -14, "System call error #4") \
33 _(SYSCALL_ERROR_5, -15, "System call error #5") \
34 _(SYSCALL_ERROR_6, -16, "System call error #6") \
35 _(SYSCALL_ERROR_7, -17, "System call error #7") \
36 _(SYSCALL_ERROR_8, -18, "System call error #8") \
37 _(SYSCALL_ERROR_9, -19, "System call error #9") \
38 _(SYSCALL_ERROR_10, -20, "System call error #10") \
39 _(FEATURE_DISABLED, -30, "Feature disabled by configuration") \
40 _(INVALID_REGISTRATION, -31, "Invalid registration") \
41 _(NEXT_HOP_NOT_IN_FIB, -50, "Next hop not in FIB") \
42 _(UNKNOWN_DESTINATION, -51, "Unknown destination") \
43 _(PREFIX_MATCHES_NEXT_HOP, -52, "Prefix matches next hop") \
44 _(NEXT_HOP_NOT_FOUND_MP, -53, "Next hop not found (multipath)") \
45 _(NO_MATCHING_INTERFACE, -54, "No matching interface for probe") \
46 _(INVALID_VLAN, -55, "Invalid VLAN") \
47 _(VLAN_ALREADY_EXISTS, -56, "VLAN subif already exists") \
48 _(INVALID_SRC_ADDRESS, -57, "Invalid src address") \
49 _(INVALID_DST_ADDRESS, -58, "Invalid dst address") \
50 _(ADDRESS_LENGTH_MISMATCH, -59, "Address length mismatch") \
51 _(ADDRESS_NOT_FOUND_FOR_INTERFACE, -60, "Address not found for interface") \
52 _(ADDRESS_NOT_LINK_LOCAL, -61, "Address not link-local") \
53 _(IP6_NOT_ENABLED, -62, "ip6 not enabled") \
54 _(IN_PROGRESS, 10, "Operation in progress") \
55 _(NO_SUCH_NODE, -63, "No such graph node") \
56 _(NO_SUCH_NODE2, -64, "No such graph node #2") \
57 _(NO_SUCH_TABLE, -65, "No such table") \
58 _(NO_SUCH_TABLE2, -66, "No such table #2") \
59 _(NO_SUCH_TABLE3, -67, "No such table #3") \
60 _(SUBIF_ALREADY_EXISTS, -68, "Subinterface already exists") \
61 _(SUBIF_CREATE_FAILED, -69, "Subinterface creation failed") \
62 _(INVALID_MEMORY_SIZE, -70, "Invalid memory size requested") \
63 _(INVALID_INTERFACE, -71, "Invalid interface") \
64 _(INVALID_VLAN_TAG_COUNT, -72, "Invalid number of tags for requested operation") \
65 _(INVALID_ARGUMENT, -73, "Invalid argument") \
66 _(UNEXPECTED_INTF_STATE, -74, "Unexpected interface state") \
67 _(TUNNEL_EXIST, -75, "Tunnel already exists") \
68 _(INVALID_DECAP_NEXT, -76, "Invalid decap-next") \
69 _(RESPONSE_NOT_READY, -77, "Response not ready") \
70 _(NOT_CONNECTED, -78, "Not connected to the data plane") \
71 _(IF_ALREADY_EXISTS, -79, "Interface already exists") \
72 _(BOND_SLAVE_NOT_ALLOWED, -80, "Operation not allowed on slave of BondEthernet") \
73 _(VALUE_EXIST, -81, "Value already exists") \
74 _(SAME_SRC_DST, -82, "Source and destination are the same") \
75 _(IP6_MULTICAST_ADDRESS_NOT_PRESENT, -83, "IP6 multicast address required") \
76 _(SR_POLICY_NAME_NOT_PRESENT, -84, "Segement routing policy name required") \
77 _(NOT_RUNNING_AS_ROOT, -85, "Not running as root") \
78 _(ALREADY_CONNECTED, -86, "Connection to the data plane already exists") \
79 _(UNSUPPORTED_JNI_VERSION, -87, "Unsupported JNI version") \
80 _(FAILED_TO_ATTACH_TO_JAVA_THREAD, -88, "Failed to attach to Java thread") \
81 _(INVALID_WORKER, -89, "Invalid worker thread") \
82 _(LISP_DISABLED, -90, "LISP is disabled") \
83 _(CLASSIFY_TABLE_NOT_FOUND, -91, "Classify table not found") \
84 _(INVALID_EID_TYPE, -92, "Unsupported LSIP EID type") \
85 _(CANNOT_CREATE_PCAP_FILE, -93, "Cannot create pcap file") \
86 _(INCORRECT_ADJACENCY_TYPE, -94, "Invalid adjacency type for this operation") \
87 _(EXCEEDED_NUMBER_OF_RANGES_CAPACITY, -95, "Operation would exceed configured capacity of ranges") \
88 _(EXCEEDED_NUMBER_OF_PORTS_CAPACITY, -96, "Operation would exceed capacity of number of ports") \
89 _(INVALID_ADDRESS_FAMILY, -97, "Invalid address family") \
90 _(INVALID_SUB_SW_IF_INDEX, -98, "Invalid sub-interface sw_if_index") \
91 _(TABLE_TOO_BIG, -99, "Table too big") \
92 _(CANNOT_ENABLE_DISABLE_FEATURE, -100, "Cannot enable/disable feature") \
93 _(BFD_EEXIST, -101, "Duplicate BFD object") \
94 _(BFD_ENOENT, -102, "No such BFD object") \
95 _(BFD_EINUSE, -103, "BFD object in use") \
96 _(BFD_NOTSUPP, -104, "BFD feature not supported") \
97 _(ADDRESS_IN_USE, -105, "Address in use") \
98 _(ADDRESS_NOT_IN_USE, -106, "Address not in use") \
99 _(QUEUE_FULL, -107, "Queue full") \
100 _(UNKNOWN_URI_TYPE, -108, "Unknown URI type") \
101 _(URI_FIFO_CREATE_FAILED, -109, "URI FIFO segment create failed") \
102 _(LISP_RLOC_LOCAL, -110, "RLOC address is local") \
103 _(BFD_EAGAIN, -111, "BFD object cannot be manipulated at this time") \
104 _(INVALID_GPE_MODE, -112, "Invalid GPE mode") \
105 _(LISP_GPE_ENTRIES_PRESENT, -113, "LISP GPE entries are present") \
106 _(ADDRESS_FOUND_FOR_INTERFACE, -114, "Address found for interface") \
107 _(SESSION_CONNECT_FAIL, -115, "Session failed to connect")
108 
109 typedef enum
110 {
111 #define _(a,b,c) VNET_API_ERROR_##a = (b),
113 #undef _
116 
117 #endif /* included_vnet_api_errno_h */
118 
119 /*
120  * fd.io coding-style-patch-verification: ON
121  *
122  * Local Variables:
123  * eval: (c-set-style "gnu")
124  * End:
125  */
vnet_api_error_t
Definition: api_errno.h:109
#define foreach_vnet_api_error
Definition: api_errno.h:18