+ return exit_code;
+}
+
+static int
+parse_actions(void)
+{
+ struct ds in;
+
+ ds_init(&in);
+ vlog_set_levels_from_string_assert("odp_util:console:dbg");
+ while (!ds_get_test_line(&in, stdin)) {
+ struct ofpbuf odp_actions;
+ struct ds out;
+ int error;
+
+ /* Convert string to OVS DP actions. */
+ ofpbuf_init(&odp_actions, 0);
+ error = odp_actions_from_string(ds_cstr(&in), NULL, &odp_actions);
+ if (error) {
+ printf("odp_actions_from_string: error\n");
+ goto next;
+ }
+
+ /* Convert odp_actions back to string. */
+ ds_init(&out);
+ format_odp_actions(&out, odp_actions.data, odp_actions.size);
+ puts(ds_cstr(&out));
+ ds_destroy(&out);
+
+ next:
+ ofpbuf_uninit(&odp_actions);
+ }
+ ds_destroy(&in);
+