def neutron_check_gateways(self):
        if objects.NodeGroupCollection.get_by_cluster_id(
                self.cluster.id).count() < 2:
            return
        for net in self.networks:
            if net['meta']['notation'] in (
                    consts.NETWORK_NOTATION.cidr,
                    consts.NETWORK_NOTATION.ip_ranges):
                cidr = netaddr.IPNetwork(net['cidr'])
                if net['gateway'] is not None:
                    gw = netaddr.IPAddress(net['gateway'])
                    # broadcast and net address intersection is checked by
                    # check_network_addresses_not_match_subnet_and_broadcast
                    if gw in cidr:
                        ip_range = self._get_net_range_for_ip(gw, net)
                        if ip_range is not None:
                            self.err_msgs.append(
                                u"Gateway address belongs to the network's "
                                u"IP range [{0}].".format(ip_range)
                            )
                            self.result.append(
                                {"ids": [net['id']], "errors": ["gateway"]}
                            )
                    else:
                        self.err_msgs.append(
                            u"Gateway address does not belong to the network."
                        )
                        self.result.append(
                            {"ids": [net['id']], "errors": ["gateway"]}
                        )
                else:
                    self.err_msgs.append(
                        u"Gateway is not set for network."
                    )
                    self.result.append(
                        {"ids": [net['id']], "errors": ["gateway"]}
                    )
        self.expose_error_messages()
Adds an external firewall appliance
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/extensions/network_manager/checker.py/NetworkCheck.neutron_check_gateways--crossover with--dataset/ETHPy150Open jasonhancock/cloudstack-python-client/CloudStack/Client.py/Client.addExternalFirewall