hostmap_tester.go 461 B

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