Skip to content
Snippets Groups Projects
Commit 54e56864 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Edge port - update description in edge_port_create template

parent 40cfd636
No related branches found
No related tags found
1 merge request!210Fix/l3 core fixes
{% set gaid_prefix = '$' %}
{% set csn_prefix = '#' %}
<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:alu="urn:ietf:params:xml:ns:netconf:base:1.0"> <config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:alu="urn:ietf:params:xml:ns:netconf:base:1.0">
<configure xmlns="urn:nokia.com:sros:ns:yang:sr:conf"> <configure xmlns="urn:nokia.com:sros:ns:yang:sr:conf">
...@@ -5,7 +7,7 @@ ...@@ -5,7 +7,7 @@
<port xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes" alu:operation="replace"> <port xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes" alu:operation="replace">
<port-id>{{ member.interface_name }}</port-id> <port-id>{{ member.interface_name }}</port-id>
<admin-state>enable</admin-state> <admin-state>enable</admin-state>
<description>PHY {{ ep.edge_port_type }} {{ partner_name }} P_{{ ep.edge_port_name }} | {{ member.interface_description }}</description> <description>PHY {{ ep.edge_port_type }} {{ partner_name }} P_{{ ep.edge_port_name }}{{ ' | '+member.interface_description if member.interface_description is string }}</description>
<ethernet> <ethernet>
<mode>access</mode> <mode>access</mode>
<encap-type>{{ ep.encapsulation }}</encap-type> <encap-type>{{ ep.encapsulation }}</encap-type>
...@@ -39,11 +41,7 @@ ...@@ -39,11 +41,7 @@
<lag-name>{{ ep.edge_port_name | lower }}</lag-name> <lag-name>{{ ep.edge_port_name | lower }}</lag-name>
<admin-state>enable</admin-state> <admin-state>enable</admin-state>
<encap-type>{{ ep.encapsulation }}</encap-type> <encap-type>{{ ep.encapsulation }}</encap-type>
{% if ep.ga_id is string %} <description>LAG {{ ep.edge_port_type }} {{ partner_name }}{{ ' | '+gaid_prefix+ep.ga_id if ep.ga_id is string }}{{ ' | '+csn_prefix+(ep.custom_service_name | replace("#","")) if ep.custom_service_name is string }}{{ ' | '+ep.edge_port_description if ep.edge_port_description is string }}</description>
<description>LAG {{ ep.edge_port_type }} {{ partner_name }} ${{ ep.ga_id }} |</description>
{% else %}
<description>LAG {{ ep.edge_port_type }} {{ partner_name }} |</description>
{% endif %}
<mode>access</mode> <mode>access</mode>
{% if ep.enable_lacp is true %} {% if ep.enable_lacp is true %}
<lacp> <lacp>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment