/
import-policies.xml
32 lines (32 loc) · 1.22 KB
/
import-policies.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0"?>
<script version="0.1">
<title>import-policies.slax</title>
<alternate>import-policies.xsl</alternate>
<author>phil</author>
<synopsis>
Require that import policies do contain bare 'then accept' terms
</synopsis>
<keyword>ospf</keyword>
<keyword>isis</keyword>
<keyword>then accept</keyword>
<description>
We want to check if any of the named policies contain a bare
'then accept' term. This helps protect against importing the full routing
table into these IGPs.
</description>
<implementation>
This example inspects the import statements configured under
[protocols ospf] and [protocols isis] to see if any of the
named policies contain a bare "then accept" term. This is
meant to protect against importing the full routing table
into these IGPs. The testing criteria in this example are
likely not sufficient, but can easily be tuned or improved.
</implementation>
<example>
<config>import-policies.conf</config>
<title>A simple configuration</title>
<errors>import-policies.output</errors>
</example>
<xhtml:script xmlns:xhtml="http://www.w3.org/1999/xhtml"
src="../../../../../web/leaf.js" type="text/javascript"/>
</script>