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

Destination class Accounting

parent db8c6aa2
No related branches found
No related tags found
1 merge request!178Destination class Accounting
Pipeline #89349 passed
......@@ -16,6 +16,7 @@
{% include 'filter_log.j2' %}
{% include 'policy_options/policy_options.j2' %}
{% include 'service_vprn.j2' %}
{% include 'router/routing_options.j2' %}
{% endif %}
{# This is because `ip_prefix_list` is related to what defined in VPRN apply_paths #}
{% include 'ip_prefix_list.j2' %}
......
......@@ -34,6 +34,20 @@
</mda>
{% endfor %}
{% endif %}
{#Policy accounting config#}
{% if card.fps is defined %}
{% for fp in card.fps %}
<fp>
<fp-number>{{ fp.id }}</fp-number>
<ingress>
<policy-accounting>
<policers>{{ fp.ingress.policy_accounting.policers }}</policers>
<classes>{{ fp.ingress.policy_accounting.classes }}</classes>
</policy-accounting>
</ingress>
</fp>
{% endfor %}
{% endif %}
</card>
{% endfor %}
......@@ -8,5 +8,6 @@
{% include 'system/security/security.j2' %}
{% include 'router/router_base.j2' %}
{% include 'sdp_mesh.j2' %}
{% include 'router/routing_options.j2' %}
</configure>
</config>
......@@ -5,6 +5,9 @@
{% if group.auth_key is defined %}
<authentication-key>{{ group.auth_key }}</authentication-key>
{% endif %}
{% if group.vpn_apply_import is defined %}
<vpn-apply-import>{{ group.vpn_apply_import|quote }}</vpn-apply-import>
{% endif %}
{% if group.nhs is defined %}
<next-hop-self>{{ group.nhs }}</next-hop-self>
{% endif %}
......@@ -31,7 +34,7 @@
</local-as>
{% endif %}
{% if group.capability_neg is defined %}
<capability-negotiation>{{ group.capability_neg }}</capability-negotiation>
<capability-negotiation>{{ group.capability_neg|quote }}</capability-negotiation>
{% endif %}
{% if bgp_group_context != 'vprn' %}
{% if (group.local_address is defined) and group.local_address == 'ipv4' %}
......
<routing-options 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">
<policy-accounting>
{% if nokia_pe_policy_acct_templates is defined %}
<policy-acct-template alu:operation="replace">
{% for template in nokia_pe_policy_acct_templates %}
<name>{{ template.name }}</name>
{% if template.destination_classes is defined %}
{% for dst_class in template.destination_classes %}
<destination-class>
<index>{{ dst_class }}</index>
</destination-class>
{% endfor %}
{% endif %}
{% endfor %}
</policy-acct-template>
{% endif %}
</policy-accounting>
</routing-options>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment