Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Mechanism string MECHANISM = "VXLAN" // Mechanism parameters // SrcIP - source IP SrcIP = common.SrcIP // DstIP - destitiona IP DstIP = common.DstIP // SrcOriginalIP - original src IP SrcOriginalIP = "orig_src_ip" // DstExternalIP - external destination ip DstExternalIP = "ext_src_ip" // VNI - vni VNI = "vni" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mechanism ¶
type Mechanism interface { // SrcIP - src ip SrcIP() (string, error) // DstIP - dst ip DstIP() (string, error) // VNI - vni VNI() (uint32, error) }
Mechanism - a vxlan mechanism utility wrapper
func ToMechanism ¶
func ToMechanism(m *connection.Mechanism) Mechanism
ToMechanism - convert unified mechanism to useful wrapper
Click to show internal directories.
Click to hide internal directories.