Skip to content
Snippets Groups Projects
networkElement.go 28.5 KiB
Newer Older
  • Learn to ignore specific revisions
  • 		return "poll", nil
    	default:
    		return "", fmt.Errorf("SubscriptionMode of type: %T is not supported", mode)
    	}
    }
    
    
    func (n *NetworkElementServer) get2dSlicePathsFrom1dPaths(gNMISubscribePaths []string) [][]string {
    	var paths [][]string
    
    	for _, path := range gNMISubscribePaths {
    		paths = append(paths, ygotutil.PathStringToElements(path))
    	}
    
    	return paths
    }