index.js
async function searchConnNameFromNetworkInterface(netInterface) { // eslint-disable-line no-unused-vars
    const conns = await listConnections();
    for (const [connName, nif] of Object.entries(conns)) {
        if (nif === netInterface) {
            return connName;
        }
    }
    return null;
}
async function searchConnNameFromNetworkInterface(netInterface) { // eslint-disable-line no-unused-vars
    const conns = await listConnections();
    for (const [connName, nif] of Object.entries(conns)) {
        if (nif === netInterface) {
            return connName;
        }
    }
    return null;
}
async function searchConnNameFromNetworkInterface ( netInterface ) { // eslint-disable-line no-unused-vars const conns = await listConnections ( ) ; for ( const [ connName , nif ] of Object . entries ( conns ) ) { if ( nif === netInterface ) { return connName ; } } return null ; }
Search the connection name from the network interface
@param {string} netInterface : network interface
@return {string} connection name for NetworkManager
Search the connection name from the network interface