]>
git.proxmox.com Git - mirror_ovs.git/blob - lib/dpctl.h
2 * Copyright (c) 2014 Nicira, Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
24 /* True if it is called by ovs-appctl command. */
27 /* -s, --statistics: Print port/flow statistics? */
28 bool print_statistics
;
30 /* --clear: Reset existing statistics to zero when modifying a flow? */
33 /* --may-create: Allow mod-flows command to create a new flow? */
36 /* --read-only: Do not run R/W commands? */
39 /* -m, --more: Increase output verbosity. */
42 /* Callback for printing. This function is called from dpctl_run_command()
43 * to output data. The 'aux' parameter is set to the 'aux'
44 * member. The 'error' parameter is true if 'string' is an error
45 * message, false otherwise */
46 void (*output
)(void *aux
, bool error
, const char *string
);
49 /* 'usage' (if != NULL) gets called for the "help" command. */
50 void (*usage
)(void *aux
);
53 int dpctl_run_command(int argc
, const char *argv
[],
54 struct dpctl_params
*dpctl_p
);
56 void dpctl_unixctl_register(void);