I would like to propose adding the following example to the text of
draft-ietf-rtgwg-policy-model
to better illustrate how the model will work in practice with routing
policies involving IGPs.
The proposed text is shown below.
I think that the example below also illustrates a problem with the naming
of what is currently called "import-level" and "set-import-level". In the
example, the export policy called
"export-all-OSPF-prefixes-into-ISIS-level-2" uses the "set-import-level"
action. As far as I can tell, it only makes sense to use
"set-import-level" in an export policy, and not in an import policy. If
this is the case, wouldn't it make more sense to call it "set-export-level"?
===========
Proposed text for new IGP routing policy example:
This example illustrates the import and export policies corresponding to
the following scenario.
All routes that are learned via OSPF advertisements should get installed in
the RIB.
All routes in the RIB that have been learned from OSPF advertisements
corresponding to
OSPF intra-area and inter-area route types should get advertised into ISIS
level 2 advertisements.
<policy-definitions>
<policy-definition>
<name>import-all-OSPF</name>
<statements>
<statement>
<name>term-0</name>
<conditions>
<match-prefix-set>
<prefix-set>all-prefixes</prefix-set>
</match-prefix-set>
</conditions>
<actions>
<policy-result>accept-route</policy-result>
</actions>
</statement>
</statements>
</policy-definition>
<policy-definition>
<name>export-all-OSPF-prefixes-into-ISIS-level-2</name>
<statements>
<statement>
<name>term-0</name>
<conditions>
<match-prefix-set>
<prefix-set>all-prefixes</prefix-set>
</match-prefix-set>
<match-route-type>
<proto-route-type>ospf-internal-type</proto-route-type>
</match-route-type>
</conditions>
<actions>
<set-import-level>
<import-level>isis-level-2</import-level>
</set-import-level>
<policy-result>accept-route</policy-result>
</actions>
</statement>
</statements>
</policy-definition>
</policy-definitions>
==========
Thanks,
Chris
_______________________________________________
rtgwg mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/rtgwg