Fixing debian_ip.py per #14530.

Setting ipv6 only options resulted in a malformed interfaces file, mostly cleanup in the template to ensure that ipv4 options are only added when ipv4 networking is included.