5 bool do_defaults (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga)
8 const struct swi_attr *sa;
12 sa = ngadmin_getCurrentSwitch(nga);
14 printf("must be logged\n");
19 printf("The switch settings will be CLEARED. Continue ? [y/N]: ");
22 if (fgets(line, sizeof(line), stdin) != NULL && strcasecmp(line, "y\n") == 0) {
23 i = ngadmin_defaults(nga);