bugfix:修改mrglobal.conf在NPB device的环境下有多余的空行的bug

This commit is contained in:
fumingwei
2021-07-09 14:03:08 +08:00
parent 98118b07d4
commit 9000c8852e

View File

@@ -11,10 +11,7 @@ vlan-id-allow=4000,4001
{% endif %}
{% if npb_device == 'tera' %}
{% set mrzcpd_vlanid_allow_list = [] %}
{% for zone_group in tera_steering_group %}
{{ mrzcpd_vlanid_allow_list.append(zone_group.internal.vlan_id) }}
{{ mrzcpd_vlanid_allow_list.append(zone_group.external.vlan_id) }}
{% endfor %}
{% for zone_group in tera_steering_group %}{{ mrzcpd_vlanid_allow_list.append(zone_group.internal.vlan_id) }}{{ mrzcpd_vlanid_allow_list.append(zone_group.external.vlan_id) }}{% endfor %}
vlan-id-allow={{ mrzcpd_vlanid_allow_list | join(",") }},4000,4001
{% endif %}
{% if npb_device == 'direct' %}