Commit 70cf1539 authored by Roger's avatar Roger Committed by Francesc Guasch
Browse files

feature(backend):Set three first MAC octets as static (#1111)

issue #1103
parent 1c973526
......@@ -2021,7 +2021,7 @@ sub _xml_modify_mac {
for ( 1 .. 1000 ) {
for my $cont ( 1 .. 1000 ) {
my @macparts = @macparts0;
my $pos = int(rand(scalar(@macparts)-1))+1;
my $pos = int(rand(scalar(@macparts)-3))+3;
my $num =sprintf "%02X", rand(0xff);
die "Missing num " if !defined $num;
$macparts[$pos] = $num;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment