Get the LanHosts of the specified interface name
@param string $lanInterfaceId
@return models\LAN\LanHost[]
488884
public function getHostsFromInterfaceName( $lanInterfaceId){
        $service = sprintf( self::API_LAN_BROWSER_INTERFACE, $lanInterfaceId);
        $rest = $this->getService( $service);
        $rest->GET();

        return $rest->getResultAsArray( models\LAN\LanHost::class);
    }
940288
function getAllInterfaces($includeSelf) {
    if (NULL === $this->interfacesAll) {
      $this->interfacesAllInclSelf = $this->interfacesAll = $this->buildAllInterfacesWithoutSelf();
      if (NULL !== $this->selfInterfaceName) {
        $selfInterface = $this->classIndex->classGetReflection($this->selfInterfaceName);
        if (NULL !== $selfInterface) {
          $this->interfacesAllInclSelf = array($this->selfInterfaceName => $selfInterface) + $this->interfacesAllInclSelf;
        }
      }
    }
    return $includeSelf
      ? $this->interfacesAllInclSelf
      : $this->interfacesAll;
  }
512427
protected function parseNode(NodeInterface $node)
    {
        return (object)[
            'type'       => $this->parseNodeType($node),
            'id'         => $node->getId() ?: null,
            'properties' => $this->parseNodeProperties($node),
        ];
    }
877232
protected function resolveInterfaceAncestors($interfaceName)
    {
        $ancestors = array($interfaceName);
        $phpFileInfo = $this->getDefinitionFile('interface', $interfaceName);

        if (null !== $phpFileInfo) {
            if ($phpFileInfo->hasInterfaceUsageByClass($interfaceName)) {
                $interfaceUsages = $phpFileInfo->getInterfaceUsageByClass($interfaceName);
                foreach ($interfaceUsages as $interfaceUsage) {
                    $ancestors = array_merge($ancestors, $this->resolveInterfaceAncestors($interfaceUsage->name()));
                }
            }
        }

        return $ancestors;
    }
1296094
public function getAllEndpoints($withHost = false, $forceReload = false)
    {
        $this->loadApiDefinition($forceReload);

        $host = empty($this->options['host']) ? '' : $this->options['host'];
        $prefix = self::PROXY_ROUTE;
        if (isset($this->options['prefix'])) {
            $prefix .= "/".$this->options['prefix'];
        }

        return !is_object($this->definition) ? [] : $this->definition->getEndpoints(
            $withHost,
            $prefix,
            $host,
            !empty($this->options['includeBasePath'])
        );
    }
488193
private function getInterfaces()
    {
        $r = '';

        // Inside interfaces
        foreach ($this->modules as $module) {
            $interfaces = (array)$this->xml->xpath('/draggy/module[@name=\'' . $module . '\']/interface');

            foreach ($interfaces as $interface) {
                $interfaceAttributes = (array)$interface;
                $interfaceAttributes = $interfaceAttributes['@attributes'];

                $this->checkMandatoryAttributes('Interface in module ' . $module, $interfaceAttributes, ['name']);

                $className = $interfaceAttributes['name'];

                $this->checkMandatoryAttributes(
                    'Interface ' . $className . ' in module ' . $module,
                    $interfaceAttributes,
                    ['left', 'top']
                );

                $r .= 'var i = new Interface(\'' . $interfaceAttributes['name'] . '\',\'' . str_replace(
                    '\\',
                    '\\\\',
                    $module
                ) . '\');' . PHP_EOL;
                $r .= 'i.moveTo(\'' . ( $interfaceAttributes['left'] /*- 1*/ ) . 'px\',\'' . ( $interfaceAttributes['top'] /*- 1*/ ) . 'px\');' . PHP_EOL;

                $r .= $this->getInterfaceProperties($interfaceAttributes, 'i');

                $r .= 'i.setModule(Container.prototype.getContainerByName(\'' . str_replace(
                    '\\',
                    '\\\\',
                    $module
                ) . '\').getId());' . PHP_EOL;
            }
        }

        // Outside interfaces
        $interfaces = (array)$this->xml->xpath('/draggy/loose/interface');

        foreach ($interfaces as $interface) {
            $interfaceAttributes = (array)$interface;
            $interfaceAttributes = $interfaceAttributes['@attributes'];

            $this->checkMandatoryAttributes('Loose interface', $interfaceAttributes, ['name']);

            $className = $interfaceAttributes['name'];

            $this->checkMandatoryAttributes('Loose interface ' . $className, $interfaceAttributes, ['left', 'top']);

            $r .= 'var i = new Interface(\'' . $className . '\');' . PHP_EOL;
            $r .= 'i.moveTo(\'' . ( $interfaceAttributes['left'] ) . 'px\',\'' . ( $interfaceAttributes['top'] ) . 'px\');' . PHP_EOL;

            $r .= $this->getInterfaceProperties($interfaceAttributes, 'i');
        }

        return $r;
    }
897095
def ip_interfaces():
    '''
    
    '''
    # Provides:
    #   ip_interfaces

    if salt.utils.platform.is_proxy():
        return {}

    ret = {}
    ifaces = _get_interfaces()
    for face in ifaces:
        iface_ips = []
        for inet in ifaces[face].get('inet', []):
            if 'address' in inet:
                iface_ips.append(inet['address'])
        for inet in ifaces[face].get('inet6', []):
            if 'address' in inet:
                iface_ips.append(inet['address'])
        for secondary in ifaces[face].get('secondary', []):
            if 'address' in secondary:
                iface_ips.append(secondary['address'])
        ret[face] = iface_ips
    return {'ip_interfaces': ret}
761780
static List<NetworkInterface> getInterfaces() throws SocketException {
        List<NetworkInterface> all = new ArrayList<NetworkInterface>();
        addAllInterfaces(all, Collections.list(NetworkInterface.getNetworkInterfaces()));
        return all;
    }
303607
protected function getInterfaceNamesFromIntroductions(array $interfaceIntroductions): array
    {
        $interfaceNames = [];
        foreach ($interfaceIntroductions as $introduction) {
            $interfaceNames[] = '\\' . $introduction->getInterfaceName();
        }
        return $interfaceNames;
    }
1220565
def getNetworkIDs(self):
        """"""

        res = []
        i = 0
        while True:
            netid = self.getValue("net_interface.%d.connection" % i)
            if not netid:
                return res
            res.append(netid)
            i += 1
5745
private function getSettings(ContainerInterface $container): array
    {
        $appConfig = null;

        /** @var CacheSettingsProviderInterface $settingsProvider */
        if ($container->has(CacheSettingsProviderInterface::class) === true &&
            ($settingsProvider = $container->get(CacheSettingsProviderInterface::class)) !== null
        ) {
            $appConfig = $settingsProvider->getApplicationConfiguration();
        }

        return [
            $appConfig[A::KEY_IS_DEBUG] ?? false,
            $appConfig[A::KEY_APP_NAME] ?? null,
            $appConfig[A::KEY_EXCEPTION_DUMPER] ?? null,
        ];
    }
1311734
private function getProviders($identifier)
    {
        if (isset($this->interfaceProviders[$identifier])) {
            return $this->interfaceProviders[$identifier];
        } elseif (isset($this->classProviders[$identifier])) {
            return $this->classProviders[$identifier];
        } else {
            return [];
        }
    }
213379
public static String[] getByInternalAPI() {
        try {
            Class<?> resolverConfiguration =
                    Class.forName("sun.net.dns.ResolverConfiguration");
            Method open = resolverConfiguration.getMethod("open");
            Method getNameservers = resolverConfiguration.getMethod("nameservers");
            Object instance = open.invoke(null);
            List nameservers = (List) getNameservers.invoke(instance);
            if (nameservers == null || nameservers.size() == 0) {
                return null;
            }
            String[] ret = new String[nameservers.size()];
            int i = 0;
            for (Object dns : nameservers) {
                ret[i++] = (String) dns;
            }
            return ret;
        } catch (Exception e) {
            // we might trigger some problems this way
            e.printStackTrace();
        }
        return null;
    }
345835
public static function getModules($extensionId)
    {
        $returnValue = array();
        foreach (ControllerHelper::getControllers($extensionId) as $controllerClassName) {
            $shortName = strpos($controllerClassName, '\\') !== false
                ? substr($controllerClassName, strrpos($controllerClassName, '\\')+1)
                : substr($controllerClassName, strrpos($controllerClassName, '_')+1)
            ;
            $uri = AccessService::singleton()->makeEMAUri($extensionId, $shortName);
            $returnValue[$uri] = new \core_kernel_classes_Resource($uri);
        }
        return (array) $returnValue;
    }
334005
public function getBrowsableInterfaces(){
        $rest = $this->getService( self::API_LAN_BROWSER_INTERFACES);
        $rest->GET();

        return $rest->getResultAsArray( models\LAN\LanInterface::class);
    }
1271116
public function getHostname(): HostnameInterface
    {
        if ($this->myHostname !== null) {
            return $this->myHostname;
        }

        // If no hostname is present, create a standard "in-addr.arpa" hostname from IP address.
        $ipAddressParts = $this->myIpAddress->getParts();

        return Hostname::fromParts([
            strval($ipAddressParts[3]),
            strval($ipAddressParts[2]),
            strval($ipAddressParts[1]),
            strval($ipAddressParts[0]),
            'in-addr',
        ], 'arpa');
    }
1299029
private Enumeration<NetworkInterface> getNetworkInterfaces() throws HarvestException {
		try {
			return NetworkInterface.getNetworkInterfaces();
		} catch (SocketException e) {
			throw new HarvestException("Could not retrieve list of available Network Interfaces.", e);
		}
	}