コード例 #1
0
    def get_interfaces(self) -> core_pb2.GetInterfacesResponse:
        """
        Retrieves a list of interfaces available on the host machine that are not
        a part of a CORE session.

        :return: get interfaces response
        """
        request = core_pb2.GetInterfacesRequest()
        return self.stub.GetInterfaces(request)
コード例 #2
0
    def get_ifaces(self) -> List[str]:
        """
        Retrieves a list of interfaces available on the host machine that are not
        a part of a CORE session.

        :return: list of interfaces
        """
        request = core_pb2.GetInterfacesRequest()
        response = self.stub.GetInterfaces(request)
        return list(response.ifaces)