public function getPolicyByHostname($name)
    {
        if (! $this->inventory->hasHost($name)) {
            return array();
        }

        $policy = array();
        $host = $this->inventory->getHost($name);

        foreach ($this->inventory->getHostGroupsByHost($host) as $group) {
            $policy = array_replace_recursive($policy, $group->getFirewallPolicy());
        }

        return array_replace_recursive($policy, $host->getFirewallPolicy());
    }