Documentation ¶
Overview ¶
Package ifnames provides caching facilty for ovs port info using metadata store. This is mainly used by mechanism and l2ovsconnect chain elements
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OvsPortInfo ¶
type OvsPortInfo struct { PortName string PortNo int VlanID uint32 IsTunnelPort bool IsVfRepresentor bool IsCrossConnected bool IsL2Connect bool VNI uint32 }
OvsPortInfo ovs port info container
func Load ¶
func Load(ctx context.Context, isClient bool) (value *OvsPortInfo, ok bool)
Load retrieves ovsPortInfo from cache for a given connection
func LoadAndDelete ¶
func LoadAndDelete(ctx context.Context, isClient bool) (value *OvsPortInfo, ok bool)
LoadAndDelete retrievs ovsPortInfo from cache and also also delete it from the cache.
func LoadOrStore ¶
func LoadOrStore(ctx context.Context, isClient bool, ovsPortInfo *OvsPortInfo) (value *OvsPortInfo, ok bool)
LoadOrStore retrievs ovsPortInfo from cache. If it doesn't exist, store it with given ovsPortInfo
Click to show internal directories.
Click to hide internal directories.