#define VLINK_HELPSTR_AUTH_SIMPLE \
"Authentication password (key)\n" \
- "The OSPF password (key)"
+ "The OSPF password (key)\n"
#define VLINK_HELPSTR_AUTH_MD5 \
"Message digest authentication password (key)\n" \
- "dummy string \n" \
"Key ID\n" \
"Use MD5 algorithm\n" \
- "The OSPF password (key)"
+ "The OSPF password (key)\n"
DEFUN (ospf_area_vlink,
ospf_area_vlink_cmd,
"Enable authentication on this virtual link\n"
"Use message-digest authentication\n"
"Use null authentication\n"
- "Message digest authentication password (key)\n"
- "Key ID\n"
- "Use MD5 algorithm\n"
- "The OSPF password (key)\n"
- "Authentication password (key)\n"
- "The OSPF password (key)")
+ VLINK_HELPSTR_AUTH_MD5
+ VLINK_HELPSTR_AUTH_SIMPLE)
{
VTY_DECLVAR_INSTANCE_CONTEXT(ospf, ospf);
int idx_ipv4_number = 1;
}
if (argv_find(argv, argc, "message-digest", &idx)) {
- /* authentication - this option can only occur
- at start of command line */
+ /* authentication message-digest */
vl_config.auth_type = OSPF_AUTH_CRYPTOGRAPHIC;
} else if (argv_find(argv, argc, "null", &idx)) {
/* "authentication null" */
"Enable authentication on this virtual link\n" \
"Use message-digest authentication\n" \
"Use null authentication\n" \
- "Message digest authentication password (key)\n" \
- "Key ID\n" \
- "Use MD5 algorithm\n" \
- "The OSPF password (key)\n" \
- "Authentication password (key)\n" \
- "The OSPF password (key)")
+ VLINK_HELPSTR_AUTH_MD5
+ VLINK_HELPSTR_AUTH_SIMPLE)
{
VTY_DECLVAR_INSTANCE_CONTEXT(ospf, ospf);
int idx_ipv4_number = 2;
ospf_authentication_key_cmd,
"ospf authentication-key AUTH_KEY [A.B.C.D]",
"OSPF interface commands\n"
- "Authentication password (key)\n"
- "The OSPF password (key)\n"
+ VLINK_HELPSTR_AUTH_SIMPLE
"Address of interface\n")
{
return ip_ospf_authentication_key(self, vty, argc, argv);
NO_STR
"IP Information\n"
"OSPF interface commands\n"
- "Authentication password (key)\n"
- "The OSPF password (key)")
+ VLINK_HELPSTR_AUTH_SIMPLE
+ "Address of interface\n")
{
VTY_DECLVAR_CONTEXT(interface, ifp);
int idx = 0;
"no ospf authentication-key [AUTH_KEY [A.B.C.D]]",
NO_STR
"OSPF interface commands\n"
- "Authentication password (key)\n"
- "The OSPF password (key)")
+ VLINK_HELPSTR_AUTH_SIMPLE
+ "Address of interface\n")
{
return no_ip_ospf_authentication_key(self, vty, argc, argv);
}