@@ -427,7 +427,8 @@ ip_parse(const char *s, ovs_be32 *ip)
return inet_pton(AF_INET, s, ip) == 1;
}
-/* Parses string 's', which must be an IP address with a port number.
+/* Parses string 's', which must be an IP address with a port number
+ * with ":" as a separator (e.g.: 192.168.1.2:80).
* Stores the IP address into '*ip' and port number to '*port'. */
char * OVS_WARN_UNUSED_RESULT
ip_parse_port(const char *s, ovs_be32 *ip, ovs_be16 *port)
@@ -1478,7 +1478,7 @@ nbctl_lb_del(struct ctl_context *ctx)
if (ctx->argc == 3) {
const char *lb_vip = ctx->argv[2];
if (smap_get(&lb->vips, lb_vip)) {
- smap_remove(CONST_CAST(struct smap * ,&lb->vips), lb_vip);
+ smap_remove(CONST_CAST(struct smap *, &lb->vips), lb_vip);
if (smap_is_empty(&lb->vips)) {
nbrec_load_balancer_delete(lb);
return;
@@ -1529,11 +1529,12 @@ nbctl_lb_list_router(struct ctl_context *ctx,
struct smap *lbs,
protocol = "tcp/udp";
}
- i == 0 ? ds_put_format(&val, UUID_FMT "
%-20.16s%-11.7s%-25.21s%s",
+ i == 0 ? ds_put_format(&val,
+ UUID_FMT " %-20.16s%-11.7s%-25.21s%s",
UUID_ARGS(&lb->header_.uuid),
lb->name, protocol,
node->key, node->value)
- : ds_put_format(&val, "\n%60s%-11.7s%-25.21s%s",
+ : ds_put_format(&val, "\n%60s%-11.7s%-25.21s%s",
"", protocol,