SynologyDSM/SynologyDSM.py
def _get_network(self, network_id):
        """Function to get specific network (eth0, total, etc)"""
        if self._data is not None:
            for network in self._data["network"]:
                if network["device"] == network_id:
                    return network
def _get_network(self, network_id):
        """Function to get specific network (eth0, total, etc)"""
        if self._data is not None:
            for network in self._data["network"]:
                if network["device"] == network_id:
                    return network
Function to get specific network (eth0, total, etc)