aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/src/cli.c
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-11-19 17:57:20 +0000
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-11-26 10:46:53 +0000
commit3e949f72778dd076fffecd7da2fb83cbb1ccb428 (patch)
treeeb5e437c0bc4be54fc57ae46ae964be7567c43bc /ctrl/libhicnctrl/src/cli.c
parentb3ee2ed8602c909f8d5096e9d8d44aa345093566 (diff)
[HICN-398] Added face create/delete/list and listener list on libctrl for hicn-plugin
Listener list returns the list of interfaces and their ip addresses Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I2582cf29d4f1f60964766d47ad8d6dc64504fd62
Diffstat (limited to 'ctrl/libhicnctrl/src/cli.c')
-rw-r--r--ctrl/libhicnctrl/src/cli.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ctrl/libhicnctrl/src/cli.c b/ctrl/libhicnctrl/src/cli.c
index 879454c3a..fc81139d6 100644
--- a/ctrl/libhicnctrl/src/cli.c
+++ b/ctrl/libhicnctrl/src/cli.c
@@ -401,7 +401,8 @@ parse_options(int argc, char *argv[], hc_command_t * command)
goto ERR_PARAM;
command->face.face.remote_port = atoi(argv[optind++]);
if (argc != optind) {
- netdevice_set_name(&command->face.face.netdevice, argv[optind++]);
+ //netdevice_set_name(&command->face.face.netdevice, argv[optind++]);
+ command->face.face.netdevice.index = atoi(argv[optind++]);
}
break;
@@ -439,7 +440,8 @@ parse_options(int argc, char *argv[], hc_command_t * command)
goto ERR_PARAM;
command->face.face.remote_port = atoi(argv[optind++]);
if (argc != optind) {
- netdevice_set_name(&command->face.face.netdevice, argv[optind++]);
+ command->face.face.netdevice.index = atoi(argv[optind++]);
+ //netdevice_set_name(&command->face.face.netdevice, argv[optind++]);
}
}
break;