Documentation ¶
Index ¶
- func GetSrIovPf(vfInterfaceName, namespace, nodeName string) (string, error)
- func ICMPConnectivityCheck(clientPod *pod.Builder, destIPAddresses []string, ifName ...string) error
- func RunCommandOnHostNetworkPod(nodeName, namespace, command string) (string, error)
- func RxTrafficOnClientPod(clientPod *pod.Builder, clientRxCmd string) error
- type InterfaceStatus
- type Junos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSrIovPf ¶
GetSrIovPf returns SR-IOV PF name for given SR-IOV VF.
func ICMPConnectivityCheck ¶
func ICMPConnectivityCheck(clientPod *pod.Builder, destIPAddresses []string, ifName ...string) error
ICMPConnectivityCheck checks ping against provided IPs from the client pod.
func RunCommandOnHostNetworkPod ¶
RunCommandOnHostNetworkPod creates hostNetwork pod and executes given command on it. The Pod will be removed at the end.
Types ¶
type InterfaceStatus ¶
type InterfaceStatus struct { InterfaceInformation []struct { PhysicalInterface []struct { Name []struct { Data string `json:"data"` } `json:"name"` AdminStatus []struct { Data string `json:"data"` Attributes struct { JunosFormat string `json:"junos:format"` } `json:"attributes"` } `json:"admin-status"` OperStatus []struct { Data string `json:"data"` } `json:"oper-status"` MTU []struct { Data string `json:"data"` } `json:"mtu"` Speed []struct { Data string `json:"data"` } `json:"speed"` } `json:"physical-interface"` } `json:"interface-information"` }
InterfaceStatus is struct that collects the data from the Juniper interfaces.
type Junos ¶
Junos creates a struct to retrieve output from the lab Juniper switch.
func NewSession ¶
NewSession establishes a new connection to a Junos device that we will use to run our commands against.
func (*Junos) ApplyConfigInterface ¶
ApplyConfigInterface applies given interface configuration to a switch.
func (*Junos) GetInterfaceConfig ¶
GetInterfaceConfig returns configuration for given interface.
Click to show internal directories.
Click to hide internal directories.