mirror of
https://github.com/openvswitch/ovs
synced 2025-10-13 14:07:02 +00:00
All existing ovs-ofctl flow mod commands now take an optional '--bundle' argument, which executes the flow mods as a single transaction. OpenFlow 1.4+ is implicitly assumed when '--bundle' is specified. ovs-ofctl 'add-flow' and 'add-flows' commands now accept flow specifications that start with an optional 'add', 'modify', 'delete', 'modify_strict', or 'delete_strict' keyword, so that arbitrary flow table modifications may be specified. For backwards compatibility, a missing keyword is treated as an 'add'. With the new '--bundle' option all the modifications are executed as a single transaction using an OpenFlow 1.4 bundle. OpenFlow 1.4 requires bundles to support at least flow and port mods. This implementation does not yet support port mods in bundles. Another restriction is that the atomic transactions are not yet supported. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
28 lines
1006 B
C
28 lines
1006 B
C
#ifndef OFP_VERSION_H
|
|
#define OFP_VERSION_H 1
|
|
|
|
#include <openflow/openflow-common.h>
|
|
#include "util.h"
|
|
#include "ofp-util.h"
|
|
|
|
#define OFP_VERSION_LONG_OPTIONS \
|
|
{"version", no_argument, NULL, 'V'}, \
|
|
{"protocols", required_argument, NULL, 'O'}
|
|
|
|
#define OFP_VERSION_OPTION_HANDLERS \
|
|
case 'V': \
|
|
ovs_print_version(OFP10_VERSION, OFP13_VERSION); \
|
|
exit(EXIT_SUCCESS); \
|
|
\
|
|
case 'O': \
|
|
set_allowed_ofp_versions(optarg); \
|
|
break;
|
|
|
|
uint32_t get_allowed_ofp_versions(void);
|
|
void set_allowed_ofp_versions(const char *string);
|
|
void mask_allowed_ofp_versions(uint32_t);
|
|
void add_allowed_ofp_versions(uint32_t);
|
|
void ofp_version_usage(void);
|
|
|
|
#endif
|