Removes each \fInetdev\fR from the list of network devices datapath
\fIdp\fR monitors.
-.TP
-\fBget-idx \fIdp\fR
-Prints the datapath number of datapath \fIdp\fR.
-
-.TP
-\fBget-name \fIdp\fR
-Prints the name of datapath \fIdp\fR, that is, the name of the network
-device acting as its local port.
-
.TP
\fBdp-show \fR[\fIdp\fR...]
Prints a summary of configured datapaths, including their datapath
return retval;
}
-static void
-do_get_idx(int argc UNUSED, char *argv[])
-{
- struct dpif dpif;
- run(dpif_open(argv[1], &dpif), "opening datapath");
- printf("%u\n", dpif_id(&dpif));
- dpif_close(&dpif);
-}
-
-static void
-do_get_name(int argc UNUSED, char *argv[])
-{
- struct dpif dpif;
- char name[IF_NAMESIZE + 1];
-
- run(dpif_open(argv[1], &dpif), "opening datapath");
- run(dpif_get_name(&dpif, name, sizeof name), "getting datapath name");
- puts(name);
- dpif_close(&dpif);
-}
-
static void
do_add_dp(int argc UNUSED, char *argv[])
{
{ "deldp", 1, 1, do_del_dp },
{ "addif", 2, INT_MAX, do_add_port },
{ "delif", 2, INT_MAX, do_del_port },
- { "get-idx", 1, 1, do_get_idx },
- { "get-name", 1, 1, do_get_name },
{ "dp-show", 0, INT_MAX, do_dp_show },
{ "dp-dump-flows", 1, 1, do_dp_dump_flows },
{ "dp-del-flows", 1, 1, do_dp_del_flows },