2023-02-17 03:23:33 +08:00
|
|
|
//go:build e2e_testing
|
|
|
|
// +build e2e_testing
|
|
|
|
|
|
|
|
package nebula
|
|
|
|
|
|
|
|
// This file contains functions used to export information to the e2e testing framework
|
|
|
|
|
2024-07-31 23:18:56 +08:00
|
|
|
import (
|
|
|
|
"net/netip"
|
|
|
|
)
|
2023-02-17 03:23:33 +08:00
|
|
|
|
2024-07-31 23:18:56 +08:00
|
|
|
func (i *HostInfo) GetVpnIp() netip.Addr {
|
2023-02-17 03:23:33 +08:00
|
|
|
return i.vpnIp
|
|
|
|
}
|
|
|
|
|
|
|
|
func (i *HostInfo) GetLocalIndex() uint32 {
|
|
|
|
return i.localIndexId
|
|
|
|
}
|
|
|
|
|
|
|
|
func (i *HostInfo) GetRemoteIndex() uint32 {
|
|
|
|
return i.remoteIndexId
|
|
|
|
}
|
|
|
|
|
2023-03-31 00:09:20 +08:00
|
|
|
func (i *HostInfo) GetRelayState() *RelayState {
|
|
|
|
return &i.relayState
|
2023-02-17 03:23:33 +08:00
|
|
|
}
|