3
0

hostmap_tester.go 473 B

123456789101112131415161718192021222324
  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 "github.com/slackhq/nebula/iputil"
  6. func (i *HostInfo) GetVpnIp() iputil.VpnIp {
  7. return i.vpnIp
  8. }
  9. func (i *HostInfo) GetLocalIndex() uint32 {
  10. return i.localIndexId
  11. }
  12. func (i *HostInfo) GetRemoteIndex() uint32 {
  13. return i.remoteIndexId
  14. }
  15. func (i *HostInfo) GetRelayState() *RelayState {
  16. return &i.relayState
  17. }