diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-04-05 12:37:52 -0700 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-04-11 15:56:20 -0700 |
| commit | 3b6a2571f07e153e850a9bf2044699d8d4434ef0 (patch) | |
| tree | f7d918e850be52bafff360cceddcd683971ec8c1 /lib/ofp-util.c | |
| parent | 141d9ce465b9722fb9321c3d102238dd33507d79 (diff) | |
| download | openvswitch-3b6a2571f07e153e850a9bf2044699d8d4434ef0.tar.gz | |
autopath: Create the autopath action.
The newly created autopath action will be the way OpenFlow
interacts with the existing bonding infrastructure.
Diffstat (limited to 'lib/ofp-util.c')
| -rw-r--r-- | lib/ofp-util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ofp-util.c b/lib/ofp-util.c index cc448bcd6..c49b07988 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -19,6 +19,7 @@ #include <errno.h> #include <inttypes.h> #include <stdlib.h> +#include "autopath.h" #include "byte-order.h" #include "classifier.h" #include "dynamic-string.h" @@ -2014,6 +2015,14 @@ check_nicira_action(const union ofp_action *a, unsigned int len, } return multipath_check((const struct nx_action_multipath *) a); + case NXAST_AUTOPATH: + error = check_nx_action_exact_len( + nah, len, sizeof(struct nx_action_autopath)); + if (error) { + return error; + } + return autopath_check((const struct nx_action_autopath *) a); + case NXAST_SNAT__OBSOLETE: default: VLOG_WARN_RL(&bad_ofmsg_rl, |
