Newer
Older
return "poll", nil
default:
return "", fmt.Errorf("SubscriptionMode of type: %T is not supported", mode)
}
}
Fabian Seidl
committed
func (n *NetworkElementServer) get2dSlicePathsFrom1dPaths(gNMISubscribePaths []string) [][]string {
var paths [][]string
for _, path := range gNMISubscribePaths {
paths = append(paths, ygotutil.PathStringToElements(path))
}
return paths
}