Set default interface from yamls
@@ -161,6 +161,12 @@ static void csp_yaml_end_if(struct data_s * data, unsigned int * dfl_addr) {
iface->netmask = atoi(data->netmask);
iface->name = strdup(data->name);
+ if (data->is_dfl) {
+ printf("default %s\n", iface->name);
+ csp_iflist_set_default(iface);
+ }
+
+
csp_print(" %s addr: %u netmask %u\n", iface->name, iface->addr, iface->netmask);
}
