From 3df3373283d794c03e1cd18585089d9f658ebd8c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 16 Nov 2010 10:32:52 -0800 Subject: [PATCH] ovs-ofctl: Remove now-useless "tun-cookie" command. This command is no longer useful, because the setting that it modifies is now a per-connection setting, not a global switch setting. This command was never documented or included in --help output (probably as an oversight). --- utilities/ovs-ofctl.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 4deb82b1e..869c75457 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -566,22 +566,6 @@ static void do_del_flows(int argc, char *argv[]) vconn_close(vconn); } -static void -do_tun_cookie(int argc OVS_UNUSED, char *argv[]) -{ - struct nxt_tun_id_cookie *tun_id_cookie; - struct ofpbuf *buffer; - struct vconn *vconn; - - tun_id_cookie = make_nxmsg(sizeof *tun_id_cookie, NXT_TUN_ID_FROM_COOKIE, - &buffer); - tun_id_cookie->set = !strcmp(argv[2], "true"); - - open_vconn(argv[1], &vconn); - send_openflow_buffer(vconn, buffer); - vconn_close(vconn); -} - static void monitor_vconn(struct vconn *vconn) { @@ -870,7 +854,6 @@ static const struct command all_commands[] = { { "add-flows", 2, 2, do_add_flows }, { "mod-flows", 2, 2, do_mod_flows }, { "del-flows", 1, 2, do_del_flows }, - { "tun-cookie", 2, 2, do_tun_cookie }, { "dump-ports", 1, 2, do_dump_ports }, { "mod-port", 3, 3, do_mod_port }, { "probe", 1, 1, do_probe }, -- 2.45.2