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-parse.c | |
parent | 141d9ce465b9722fb9321c3d102238dd33507d79 (diff) |
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-parse.c')
-rw-r--r-- | lib/ofp-parse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index de7cd9c7..4c4811b6 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -22,6 +22,7 @@ #include <errno.h> #include <stdlib.h> +#include "autopath.h" #include "byte-order.h" #include "dynamic-string.h" #include "netdev.h" @@ -453,6 +454,10 @@ str_to_action(char *str, struct ofpbuf *b) struct nx_action_multipath *nam; nam = ofpbuf_put_uninit(b, sizeof *nam); multipath_parse(nam, arg); + } else if (!strcasecmp(act, "autopath")) { + struct nx_action_autopath *naa; + naa = ofpbuf_put_uninit(b, sizeof *naa); + autopath_parse(naa, arg); } else if (!strcasecmp(act, "output")) { put_output_action(b, str_to_u32(arg)); } else if (!strcasecmp(act, "enqueue")) { |