* Added support for migration networks, and wrote the man page for anvil-cycle-vm-nics.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 1 year ago
parent b0df1d22de
commit d39b0af67b
  1. 20
      man/anvil-cycle-vm-nics.8
  2. 4
      tools/anvil-cycle-vm-nics

@ -0,0 +1,20 @@
.\" Manpage for the Anvil! tool to cycle NICs on a kvm/qemu VM
.\" Contact mkelly@alteeve.com to report issues, concerns or suggestions.
.TH anvil-cycle-vm-nics "8" "July 26 2023" "Anvil! Intelligent Availability™ Platform"
.SH NAME
anvil-cycle-vm-nics \- Tool used to unplug and plug virtual network cables into kvm/qemu VM network interfaces
.SH SYNOPSIS
.B anvil-cycle-vm-nics <server_name>
\fI\,<command> \/\fR[\fI\,options\/\fR]
.SH DESCRIPTION
anvil-cycle-vm-nics \- This tool makes it easier to map virtual network interfaces during the configuration of VMs in a virtual Anvil! cluster.
.SH OPTIONS
.TP
The tool takes the name of the server (as displayed in virsh) and the sole argument. There are no other commands.
.TP
Note: This cycles NICs connected to bridges with the prefix, in order, 'bcn', 'sn', 'ifn', and 'mn'.
.IP
.SH AUTHOR
Written by Madison Kelly, Alteeve staff and the Anvil! project contributors.
.SH "REPORTING BUGS"
Report bugs to users@clusterlabs.org

@ -84,6 +84,10 @@ sub cycle_nics
{
$say_network = "Internet-Facing Network ".$network_number." - Bridge ".$bridge_number;
}
elsif ($bridge_type eq "mn")
{
$say_network = "Migration Network ".$network_number." - Bridge ".$bridge_number;
}
print __LINE__."; [ Debug ] - bridge_number: [".$bridge_number."]\n" if $debug >= 2;
foreach my $this_vnet (sort {$a cmp $b} keys %{$nics->{$bridge_type}{$network_number}{$bridge_number}})

Loading…
Cancel
Save