Index: tools/gformat.py
===================================================================
--- tools/gformat.py	(revision 10821)
+++ tools/gformat.py	(revision 10823)
@@ -612,5 +612,5 @@
   {% endif -%}
 
-  {% gateway %}
+  {% if gateway %}
     defaultrouter="{{ gateway }}"
   {% endif %}
