This commit is contained in:
parent
913f466cbb
commit
c4fcd31fa6
@ -112,6 +112,7 @@ def
|
|||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
{%- set PORT_ALL = [] %}
|
{%- set PORT_ALL = [] %}
|
||||||
|
{%- set PORT_BP = [] %}
|
||||||
{%- set SYSTEM_PORT_ALL = [] %}
|
{%- set SYSTEM_PORT_ALL = [] %}
|
||||||
|
|
||||||
{%- if voq_chassis %}
|
{%- if voq_chassis %}
|
||||||
@ -136,6 +137,9 @@ def
|
|||||||
{%- if PORT_ALL.append(port) %}{%- endif %}
|
{%- if PORT_ALL.append(port) %}{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
{%- if defs.generate_bp_port_list is defined %}
|
||||||
|
{%- if defs.generate_bp_port_list(PORT,PORT_BP) %} {% endif %}
|
||||||
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- set PORT_ACTIVE = [] %}
|
{%- set PORT_ACTIVE = [] %}
|
||||||
@ -146,6 +150,9 @@ def
|
|||||||
{%- for port in DEVICE_NEIGHBOR.keys() %}
|
{%- for port in DEVICE_NEIGHBOR.keys() %}
|
||||||
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
|
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
{%- for port in PORT_BP %}
|
||||||
|
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
{%- for port in PORT_ALL %}
|
{%- for port in PORT_ALL %}
|
||||||
{%- if port not in DEVICE_NEIGHBOR.keys() %}
|
{%- if port not in DEVICE_NEIGHBOR.keys() %}
|
||||||
{%- if PORT_INACTIVE.append(port) %}{%- endif %}
|
{%- if PORT_INACTIVE.append(port) %}{%- endif %}
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
{%- set PORT_ALL = [] %}
|
{%- set PORT_ALL = [] %}
|
||||||
|
{%- set PORT_BP = [] %}
|
||||||
{%- for port in PORT %}
|
{%- for port in PORT %}
|
||||||
{%- if not port.startswith('Ethernet-Rec') and not port.startswith('Ethernet-IB') %}
|
{%- if not port.startswith('Ethernet-Rec') and not port.startswith('Ethernet-IB') %}
|
||||||
{%- if PORT_ALL.append(port) %}{% endif %}
|
{%- if PORT_ALL.append(port) %}{% endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
{%- if generate_bp_port_list is defined %}
|
||||||
|
{%- if generate_bp_port_list(PORT,PORT_BP) %} {% endif %}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
{%- if PORT_ALL | sort_by_port_index %}{% endif %}
|
{%- if PORT_ALL | sort_by_port_index %}{% endif %}
|
||||||
|
|
||||||
{%- set port_names_list_all = [] %}
|
{%- set port_names_list_all = [] %}
|
||||||
@ -20,6 +25,9 @@
|
|||||||
{%- for port in DEVICE_NEIGHBOR.keys() %}
|
{%- for port in DEVICE_NEIGHBOR.keys() %}
|
||||||
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
|
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
{%- for port in PORT_BP %}
|
||||||
|
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if PORT_ACTIVE | sort_by_port_index %}{% endif %}
|
{%- if PORT_ACTIVE | sort_by_port_index %}{% endif %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user