aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/cli/hicnc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/hicn/cli/hicnc.c')
-rw-r--r--hicn-light/src/hicn/cli/hicnc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/cli/hicnc.c b/hicn-light/src/hicn/cli/hicnc.c
index 2c1c3500e..2445f258c 100644
--- a/hicn-light/src/hicn/cli/hicnc.c
+++ b/hicn-light/src/hicn/cli/hicnc.c
@@ -150,6 +150,11 @@ main(int argc, char * const * argv)
fprintf(stderr, "Error running command");
goto ERR_CMD;
}
+ } else if (command.action == ACTION_CREATE && command.object.type == OBJECT_ROUTE) {
+ if (hc_route_create(s, &command.object.route) < 0) {
+ fprintf(stderr, "Error running command");
+ goto ERR_CMD;
+ }
}
exit(EXIT_SUCCESS);