if (!(afi == AFI_IP || afi == AFI_IP6)) {
vty_out(vty,
- "%%only ipv4 or ipv6 address families are supported");
+ "%%only ipv4 or ipv6 address families are supported\n");
return CMD_WARNING;
}
if (safi != SAFI_UNICAST) {
vty_out(vty,
- "%%only ipv4 unicast or ipv6 unicast are supported");
+ "%%only ipv4 unicast or ipv6 unicast are supported\n");
return CMD_WARNING;
}
if ((oly != OVERLAY_INDEX_TYPE_NONE)
&& (oly != OVERLAY_INDEX_GATEWAY_IP)) {
- vty_out(vty, "%%Unknown overlay-index type specified");
+ vty_out(vty, "%%Unknown overlay-index type specified\n");
return CMD_WARNING;
}
if (!(afi == AFI_IP || afi == AFI_IP6)) {
vty_out(vty,
- "%%only ipv4 or ipv6 address families are supported");
+ "%%only ipv4 or ipv6 address families are supported\n");
return CMD_WARNING;
}
if (safi != SAFI_UNICAST) {
vty_out(vty,
- "%%only ipv4 unicast or ipv6 unicast are supported");
+ "%%only ipv4 unicast or ipv6 unicast are supported\n");
return CMD_WARNING;
}
if (pfx_table_validate_r(rtr_config->pfx_table, &matches, &match_count,
asn, &addr, prefix->prefixlen, &result)
!= PFX_SUCCESS) {
- vty_out(vty, "Prefix lookup failed");
+ vty_out(vty, "Prefix lookup failed\n");
return CMD_WARNING;
}
if (!yes) {
/* implement me */
- vty_out(vty, "It's not implemented");
+ vty_out(vty, "It's not implemented\n");
return CMD_WARNING_CONFIG_FAILED;
}
int cmd = cmd_banner_motd_file(filename);
if (cmd == CMD_ERR_NO_FILE)
- vty_out(vty, "%s does not exist", filename);
+ vty_out(vty, "%s does not exist\n", filename);
else if (cmd == CMD_WARNING_CONFIG_FAILED)
- vty_out(vty, "%s must be in %s", filename, SYSCONFDIR);
+ vty_out(vty, "%s must be in %s\n", filename, SYSCONFDIR);
return cmd;
}
unsigned int seconds;
if (argc < 4) {
- vty_out(vty, "%% Must supply stub-router period");
+ vty_out(vty, "%% Must supply stub-router period\n");
return CMD_WARNING_CONFIG_FAILED;
}
unsigned int seconds;
if (argc < 4) {
- vty_out(vty, "%% Must supply stub-router shutdown period");
+ vty_out(vty, "%% Must supply stub-router shutdown period\n");
return CMD_WARNING_CONFIG_FAILED;
}
struct pbr_map_sequence *pbrms = VTY_GET_CONTEXT(pbr_map_sequence);
#ifndef GNU_LINUX
- vty_out(vty, "pbr marks are not supported on this platform");
+ vty_out(vty, "pbr marks are not supported on this platform\n");
return CMD_WARNING_CONFIG_FAILED;
#endif
vrf = vrf_lookup_by_name(vrf_name);
if (!vrf) {
- vty_out(vty, "Unable to find vrf you silly head");
+ vty_out(vty, "Unable to find vrf you silly head\n");
return CMD_WARNING_CONFIG_FAILED;
}
vni = strtoul(argv[4]->arg, NULL, 10);
if (!prefix_str2mac(argv[6]->arg, &mac)) {
- vty_out(vty, "%% Malformed MAC address");
+ vty_out(vty, "%% Malformed MAC address\n");
return CMD_WARNING;
}
zvrf = zebra_vrf_get_evpn();