X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fikev2%2Fikev2_cli.c;fp=src%2Fplugins%2Fikev2%2Fikev2_cli.c;h=b991de4207e92e7df62047d819db41c720f2a8ef;hb=4cb21c8e5d70d20df94f5d892471a11488547881;hp=2a5ebb3b6a256b069b70cd2c391d6c7163dfec56;hpb=cd35ed48d44615c49617e6d0135396b57cd43cd5;p=vpp.git diff --git a/src/plugins/ikev2/ikev2_cli.c b/src/plugins/ikev2/ikev2_cli.c index 2a5ebb3b6a2..b991de4207e 100644 --- a/src/plugins/ikev2/ikev2_cli.c +++ b/src/plugins/ikev2/ikev2_cli.c @@ -355,27 +355,27 @@ ikev2_profile_add_del_command_fn (vlib_main_t * vm, else if (unformat (line_input, - "set %U esp-crypto-alg %U %u esp-integ-alg %U esp-dh %U", + "set %U esp-crypto-alg %U %u esp-integ-alg %U", unformat_token, valid_chars, &name, unformat_ikev2_transform_encr_type, &crypto_alg, &tmp1, - unformat_ikev2_transform_integ_type, &integ_alg, - unformat_ikev2_transform_dh_type, &dh_type)) + unformat_ikev2_transform_integ_type, &integ_alg)) { r = ikev2_set_profile_esp_transforms (vm, name, crypto_alg, integ_alg, - dh_type, tmp1); + IKEV2_TRANSFORM_DH_TYPE_NONE, + tmp1); goto done; } else if (unformat (line_input, - "set %U esp-crypto-alg %U %u esp-dh %U", + "set %U esp-crypto-alg %U %u", unformat_token, valid_chars, &name, - unformat_ikev2_transform_encr_type, &crypto_alg, &tmp1, - unformat_ikev2_transform_dh_type, &dh_type)) + unformat_ikev2_transform_encr_type, &crypto_alg, &tmp1)) { r = ikev2_set_profile_esp_transforms (vm, name, crypto_alg, 0, - dh_type, tmp1); + IKEV2_TRANSFORM_DH_TYPE_NONE, + tmp1); goto done; } else if (unformat (line_input, "set %U sa-lifetime %lu %u %u %lu", @@ -430,7 +430,7 @@ VLIB_CLI_COMMAND (ikev2_profile_add_del_command, static) = { "ikev2 profile set responder \n" "ikev2 profile set ike-crypto-alg ike-integ-alg ike-dh \n" "ikev2 profile set esp-crypto-alg " - "[esp-integ-alg ] esp-dh \n" + "[esp-integ-alg ]\n" "ikev2 profile set sa-lifetime ", .function = ikev2_profile_add_del_command_fn, };