You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Anvil/Tools/Network.pm
+44-15Lines changed: 44 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -3237,6 +3237,8 @@ This method loads and stores the same data as the C<< get_ips >> method, but doe
3237
3237
3238
3238
C<< Note >>: IP addresses that have been deleted will be marked so by C<< ip >> being set to C<< DELETED >>.
3239
3239
3240
+
C<< Note >>: If there network has a device name, from network manager, that is the name used for C<< <iface_name> >>.
3241
+
3240
3242
The loaded data will be stored as:
3241
3243
3242
3244
* C<< network::<host>::interface::<iface_name>::ip >> - If an IP address is set
@@ -3343,6 +3345,7 @@ AND
3343
3345
my$bridge_name = "";
3344
3346
my$bond_name = "";
3345
3347
my$interface_name = "";
3348
+
my$interface_device = "";
3346
3349
my$interface_mac = "";
3347
3350
my$network_interface_uuid = "";
3348
3351
if ($ip_address_on_typeeq"interface")
@@ -3381,11 +3384,24 @@ AND
3381
3384
3382
3385
if ($active_interface)
3383
3386
{
3384
-
my$query = "SELECT network_interface_uuid FROM network_interfaces WHERE network_interface_host_uuid = ".$anvil->Database->quote($host_uuid)." AND network_interface_name = ".$anvil->Database->quote($active_interface).";";
anvil-join-anvil \- This tool assembles two subnodes into a node.
6
6
.SH SYNOPSIS
@@ -9,10 +9,6 @@ anvil-join-anvil \- This tool assembles two subnodes into a node.
9
9
.SH DESCRIPTION
10
10
This program takes two subnodes and merges them into an Anvil! node. This can be two new subnodes, or an existing subnode with a replacement subnode after a subnode failure.
11
11
.TP
12
-
.BNote:
13
-
.TP
14
-
As if this time, this tool only runs from a job registered in the database. As such, the job must be recorded using the Striker web interface
15
-
.TP
16
12
.SH OPTIONS
17
13
.TP
18
14
\-?, \-h, \fB\-\-help\fR
@@ -25,9 +21,25 @@ When logging, record sensitive data, like passwords.
25
21
Set the log level to 1, 2 or 3 respectively. Be aware that level 3 generates a significant amount of log data.
26
22
.SS "Commands:"
27
23
.TP
24
+
\fB\-\-as\-machine\fR <'node1' or 'node2'>
25
+
.TP
26
+
When using \fB\-\-rejoin\fR, this is the subnode role that this host will take.
27
+
.TP
28
+
.BNOTE:
29
+
.TP
30
+
The previous subnode that held this position will be purged! All data associated with the previous subnode will be deleted from the Anvil! database.
31
+
.TP
28
32
\fB\-\-job\-uuid\fR
29
33
.TP
30
34
This is the job UUID that will be run.
35
+
.TP
36
+
\fB\-\-manifest\fR <name or uuid>
37
+
.TP
38
+
If this is given, then this host will be joined to the manifest. This is required if \fB\-\-rejoin\fR is used.
39
+
.TP
40
+
\fB\-\-rejoin\fR
41
+
.TP
42
+
If this is set, the host will be (re)joined to an existing Anvil! node. This is used to bring this host into an Anvil! subnode, typically after a subnode failure / rebuild.
31
43
.IP
32
44
.SH AUTHOR
33
45
Written by Madison Kelly, Alteeve staff and the Anvil! project contributors.
0 commit comments