def _setup_firewall(self, gce_project):
    "Create the firewall if it doesn't exist."
    firewalls = gce_project.list_firewalls()
    firewall_names = [firewall.name for firewall in firewalls]
    if not FIREWALL in firewall_names:
      firewall = gce.Firewall(
          name=FIREWALL,
          target_tags=[DEMO_NAME],
          description=FIREWALL_DESCRIPTION)
      gce_project.insert(firewall)
dataset/ETHPy150Open googlearchive/compute-appengine-demo-suite-python/demo-suite/demos/fractal/main.py/Fractal._setup_firewall/original