libosmocore:  Transition to use of 'telnet_init_default'

Replace remaining calls of telnet_init_dynif() by telnet_init_default()

Related: OS#5809
Change-Id: Ie762d0c642021db1a6ef95333cd771351de86845
diff --git a/tests/logging/logging_vty_test.c b/tests/logging/logging_vty_test.c
index 96b316d..15f7fc2 100644
--- a/tests/logging/logging_vty_test.c
+++ b/tests/logging/logging_vty_test.c
@@ -261,7 +261,7 @@
 		}
 	}
 
-	rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
+	rc = telnet_init_default(root_ctx, NULL, 42042);
 	if (rc < 0)
 		return 2;
 
diff --git a/tests/stats/stats_vty_test.c b/tests/stats/stats_vty_test.c
index 09b125a..29cbf5e 100644
--- a/tests/stats/stats_vty_test.c
+++ b/tests/stats/stats_vty_test.c
@@ -70,7 +70,7 @@
 
 	osmo_stats_vty_add_cmds();
 
-	rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
+	rc = telnet_init_default(root_ctx, NULL, 42042);
 	if (rc < 0)
 		return 2;
 
diff --git a/tests/tdef/tdef_vty_config_root_test.c b/tests/tdef/tdef_vty_config_root_test.c
index e2dbcb4..8c46d95 100644
--- a/tests/tdef/tdef_vty_config_root_test.c
+++ b/tests/tdef/tdef_vty_config_root_test.c
@@ -260,7 +260,7 @@
 		}
 	}
 
-	rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
+	rc = telnet_init_default(root_ctx, NULL, 42042);
 	if (rc < 0)
 		return 2;
 
diff --git a/tests/tdef/tdef_vty_config_subnode_test.c b/tests/tdef/tdef_vty_config_subnode_test.c
index d4abe09..e3e165d 100644
--- a/tests/tdef/tdef_vty_config_subnode_test.c
+++ b/tests/tdef/tdef_vty_config_subnode_test.c
@@ -253,7 +253,7 @@
 		}
 	}
 
-	rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
+	rc = telnet_init_default(root_ctx, NULL, 42042);
 	if (rc < 0)
 		return 2;
 
diff --git a/tests/tdef/tdef_vty_dynamic_test.c b/tests/tdef/tdef_vty_dynamic_test.c
index 715fa60..b646c54 100644
--- a/tests/tdef/tdef_vty_dynamic_test.c
+++ b/tests/tdef/tdef_vty_dynamic_test.c
@@ -327,7 +327,7 @@
 		}
 	}
 
-	rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
+	rc = telnet_init_default(root_ctx, NULL, 42042);
 	if (rc < 0)
 		return 2;
 
diff --git a/tests/vty/vty_transcript_test.c b/tests/vty/vty_transcript_test.c
index 0f18f7e..1754b67 100644
--- a/tests/vty/vty_transcript_test.c
+++ b/tests/vty/vty_transcript_test.c
@@ -361,7 +361,7 @@
 		}
 	}
 
-	rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
+	rc = telnet_init_default(root_ctx, NULL, 42042);
 	if (rc < 0)
 		return 2;
 
diff --git a/utils/osmo-ns-dummy.c b/utils/osmo-ns-dummy.c
index e2662a2..890444c 100644
--- a/utils/osmo-ns-dummy.c
+++ b/utils/osmo-ns-dummy.c
@@ -272,8 +272,7 @@
 		fprintf(stderr, "No config file: '%s' Using default config.\n",
 			config_file);
 
-	rc = telnet_init_dynif(ctx, NULL, vty_get_bind_addr(),
-			       vty_port);
+	rc = telnet_init_default(ctx, NULL, vty_port);
 	if (rc < 0) {
 		fprintf(stderr, "Error initializing telnet\n");
 		exit(1);