hostmap_tester.go 439 B

12345678910111213141516171819202122232425
  1. //go:build e2e_testing
  2. package nebula
  3. // This file contains functions used to export information to the e2e testing framework
  4. import (
  5. "net/netip"
  6. )
  7. func (i *HostInfo) GetVpnAddrs() []netip.Addr {
  8. return i.vpnAddrs
  9. }
  10. func (i *HostInfo) GetLocalIndex() uint32 {
  11. return i.localIndexId
  12. }
  13. func (i *HostInfo) GetRemoteIndex() uint32 {
  14. return i.remoteIndexId
  15. }
  16. func (i *HostInfo) GetRelayState() *RelayState {
  17. return &i.relayState
  18. }