Example #1
0
    def getHostDetails(self, host_id):
        """Returns data relating to amplet"""
        session = getSessionE(self._session_id)

        service = ccsd_service.getHostDetails(self, host_id)

        return service
Example #2
0
    def getHostDetails(self, host_id):
        """Returns data relating to HostAPd on a host"""
        session = getSessionE(self._session_id)

        service = ccsd_service.getHostDetails(self, host_id)
        service["interfaces"] = self.getInterfaces(host_id)

        return service
Example #3
0
    def getHostDetails(self, host_id):
        """Returns data relating to quagga on a host"""
        session = getSessionE(self._session_id)

        service = ccsd_service.getHostDetails(self, host_id)
        service["interfaces"] = self.getOSPFInterfaces(host_id)
        service["statics"] = self.getStaticRoutes(host_id)

        return service
Example #4
0
    def getHostDetails(self, host_id):
        """Returns data relating to Rlac on a host"""
        session = getSessionE(self._session_id)

        service = ccsd_service.getHostDetails(self, host_id)
        service["interfaces"] = self.getInterfaces(host_id)
        
        #XXX FIXME
        service["network_default"] = 1
        service["lns"] = session.query("SELECT * FROM rlac_host WHERE host_id=%s", (host_id))

        return service