func GetEgressInterface(classifier *factory.Classifier, ipV4 string) (string, error) {
	var iop string = ""
	ipV4 = fmt.Sprintf("%s/24", ipV4)
	_, ipnet, err := net.ParseCIDR(ipV4)
	if err != nil {
		logger.PduSessLog.Errorln("Impossible to find the address")
		return "", err
	}

	for _, i := range classifier.Egress {
		ip := net.ParseIP(i)
		if ipnet.Contains(ip) {
			iop = ip.To4().String()
			return iop, nil
		}
	}

	return "", err
}
// GetEgressInterface returns the classifier egress interface corresponding to a slice ID
GetEgressInterface returns the classifier egress interface corresponding to a slice ID
// GetEgressInterface returns the classifier egress interface corresponding to a slice ID
func GetEgressInterface(classifier *factory.Classifier, ipV4 string) (string, error) {
	var iop string = ""
	ipV4 = fmt.Sprintf("%s/24", ipV4)
	_, ipnet, err := net.ParseCIDR(ipV4)
	if err != nil {
		logger.PduSessLog.Errorln("Impossible to find the address")
		return "", err
	}
	for _, i := range classifier.Egress {
		ip := net.ParseIP(i)
		if ipnet.Contains(ip) {
			iop = ip.To4().String()
			return iop, nil
		}
	}
	return "", err
}
func GetEgressInterface ( classifier * factory . Classifier , ipV4 string ) ( string , error ) { var iop string = " " ipV4 = fmt . Sprintf ( " " , ipV4 ) _ , ipnet , err := net . ParseCIDR ( ipV4 ) if err != nil { logger . PduSessLog . Errorln ( " " ) return " " , err } for _ , i := range classifier . Egress { ip := net . ParseIP ( i ) if ipnet . Contains ( ip ) { iop = ip . To4 ( ) . String ( ) return iop , nil } } return " " , err }
GetEgressInterface returns the classifier egress interface corresponding to a slice ID
GetEgressInterface returns the classifier egress interface corresponding to a slice ID