In one example, a network management system (NMS) and method discovers device roles for network devices. The NMS includes a learning module configured to include a learning model, the learning model trained to associate configuration segments for each of a plurality of network devices with device roles performed by the network devices. The NMS discovers a network service on a network, receives configuration information from the discovered network service and splits the configuration information received from the discovered network service into configuration segments based on a vendor neutral yang model associated with the discovered network service. The NMS then determines if the discovered network service performs one or more of the device roles performed by the network devices used to train the learning model, wherein determining includes applying the learning model to the configuration segments of the discovered network service.
展开▼