src/net: rename helper fn create_ng -> init_next_gen

This function is responsible for initializing the necessary files for
the next net generation.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-04-20 21:14:54 +02:00
committed by Tobias Waldekranz
parent 4c7813f996
commit 9aeb35c73b
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ assert_iface br0
################################################
sep
say "Verify add another bridge port"
create_ng
init_next_gen
create_iface br0
create_iface eth3
@@ -36,7 +36,7 @@ assert_iface br0
sep
say "Verify delete a bridge port"
del_brport br0 eth1
create_ng
init_next_gen
create_iface br0
create_iface eth1
+2 -2
View File
@@ -100,7 +100,7 @@ trapit()
done
}
create_ng()
init_next_gen()
{
_=$((gen += 1))
mkdir -p "$NET_DIR/$gen"
@@ -110,7 +110,7 @@ create_ng()
setup()
{
say "Test start $(date)"
create_ng
init_next_gen
# Runs once when including lib.sh
mkdir -p "${NET_DIR}"
+1 -1
View File
@@ -20,7 +20,7 @@ assert_iface eth2 10.0.2.1/24
sep
say "Verify removal of an interface"
remove_iface eth1
create_ng
init_next_gen
create_iface eth0
create_iface eth2