diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js
index c73c515b8a..5af65150cd 100644
--- a/src/sunstone/public/js/plugins/templates-tab.js
+++ b/src/sunstone/public/js/plugins/templates-tab.js
@@ -2586,7 +2586,60 @@ function generate_nic_tab_content(str_nic_tab_id){
'
'+
generateSecurityGroupTableSelect("vm_create_nic_"+str_nic_tab_id)+
'
'+
- ''});
+ ''+
+
+ // Hidden inputs for white/black ports and icmp drop. These inputs are
+ // deprecated, but keeping them hidden allows to preserve the values for
+ // previous templates in the update wizard.
+
+ ''+
+ '
'+
+ ''+tr("TCP Firewall")+' '+
+ ''+
+ ''+
+ '
'+
+ ''+tr("PORTS")+
+ ''+tr("A list of ports separated by commas or a ranges separated by semicolons, e.g.: 22,80,5900:6000")+' '+
+ ' '+
+ ' '+
+ '
'+
+ '
'+
+ ' '+
+ '
'+
+ ''+tr("UDP Firewall")+' '+
+ ''+
+ ''+
+ '
'+
+ ''+tr("PORTS")+
+ ''+tr("A list of ports separated by commas or a ranges separated by semicolons, e.g.: 22,80,5900:6000")+' '+
+ ' '+
+ ' '+
+ '
'+
+ '
'+
+ ' '+
+ '
'+
+ ''+tr("ICMP")+' '+
+ ''+
+ '
'+
+ ''+
+ ' '+
+ tr("Drop")+
+ ' '+
+ '
'+
+ '
'+
+ ' '+
+ '
'
+});
return html;
}