//New creates a new ipvs struct and flushes the IPVS Table
New creates a new ipvs struct and flushes the IPVS Table
// New creates a new ipvs struct and flushes the IPVS Table
func New() (*Ipvs, error) {
	handler, err := ipvs.New("")
	if err != nil {
		return nil, fmt.Errorf("[ipvs] Initialisation failed: %v", err)
	}
	if err := handler.Flush(); err != nil {
		return nil, fmt.Errorf("[ipvs] Flushing table failed: %v", err)
	}
	return &Ipvs{
		handler: handler,
	}, nil
}
func New ( ) ( * Ipvs , error ) { handler , err := ipvs . New ( " " ) if err != nil { return nil , fmt . Errorf ( " " , err ) } if err := handler . Flush ( ) ; err != nil { return nil , fmt . Errorf ( " " , err ) } return & Ipvs { handler : handler , } , nil }
New creates a new ipvs struct and flushes the IPVS Table
New creates a new ipvs struct and flushes the IPVS Table