tstest/natlab/vnet: add syslog tests
Updates #13038 Change-Id: I4ac96cb0a9e46a2fb1e09ddedd3614eb006c2c8c Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
b1a5b40318
commit
7e88d6712e
@@ -6,6 +6,7 @@ package vnet
|
||||
import (
|
||||
"cmp"
|
||||
"fmt"
|
||||
"iter"
|
||||
"net/netip"
|
||||
"os"
|
||||
"slices"
|
||||
@@ -60,6 +61,10 @@ func (c *Config) FirstNetwork() *Network {
|
||||
return c.networks[0]
|
||||
}
|
||||
|
||||
func (c *Config) Nodes() iter.Seq2[int, *Node] {
|
||||
return slices.All(c.nodes)
|
||||
}
|
||||
|
||||
func nodeMac(n int) MAC {
|
||||
// 52=TS then 0xcc for cccclient
|
||||
return MAC{0x52, 0xcc, 0xcc, 0xcc, 0xcc, byte(n)}
|
||||
|
||||
Reference in New Issue
Block a user