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 = common.SrcOriginalIP // DstExternalIP - external destination ip DstExternalIP = common.DstExternalIP // VNI - vni VNI = "vni" // MTUOverhead - maximum transmission unit overhead for VXLAN encapsulation MTUOverhead = 50 )
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.