...

Package iptable

import "github.com/chaos-mesh/chaos-mesh/controllers/podnetworkchaos/iptable"
Overview
Index

Overview ▾

func GenerateName

func GenerateName(direction pb.Chain_Direction, networkchaos *v1alpha1.NetworkChaos) (chainName string)

GenerateName generates chain name for network chaos

func SetIptablesChains

func SetIptablesChains(ctx context.Context, pbClient chaosdaemonclient.ChaosDaemonClientInterface, pod *v1.Pod, chains []*pb.Chain) error

SetIptablesChains makes grpc call to chaosdaemon to flush iptable