cnms

package
v1.15.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEbTableRulesInMap

func GetEbTableRulesInMap() (map[string]string, error)

GetEbTableRulesInMap gathers prerouting and postrouting rules into a map.

Types

type NetworkMonitor

type NetworkMonitor struct {
	AddRulesToBeValidated    map[string]int
	DeleteRulesToBeValidated map[string]int
	CNIReport                *telemetry.CNIReport
}

func (*NetworkMonitor) CreateRequiredL2Rules

func (networkMonitor *NetworkMonitor) CreateRequiredL2Rules(
	currentEbtableRulesMap map[string]string,
	currentStateRulesMap map[string]string) error

CreateRequiredL2Rules finds the rules that should be in nat ebtable based on state.

func (*NetworkMonitor) RemoveInvalidL2Rules

func (networkMonitor *NetworkMonitor) RemoveInvalidL2Rules(
	currentEbtableRulesMap map[string]string,
	currentStateRulesMap map[string]string) error

RemoveInvalidL2Rules removes rules that should not be in nat ebtable based on state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL