The "top-level" match conditions (no ADVFT_PS tests; in the parser, this means that "idrp_import_optional_info" is empty):
- Each node have distinct static routes defined in the address document.
- Each node has the following import statement in each configuration file
where the RDI parameter aa is set to be the RDI of the other machine.import proto idrp rdi aa { ip all restrict; all restrict; };
- Two machines configured as external peers of each other.
(For addresses of the machines see addresses document)
Expected Result
No routes imported from the other machine (no change to the routing tables).
Test 2 External peers, all routes passed
Setup
- Each node have distinct static routes defined in the address document.
- Each node has the following import statement in each configuration file
import proto idrp rdi aa { all; ip all; };
where the RDI parameter aa is set to be the RDI of the other machine. This differs from differs from Test 1 by having an "all" instead of an "all restrict".
- Two machines configured as external peers of each other.
Expected Result
All routes of the "other" machine will be imported. The routing table on each machine should have *all* of the statics of both config files.
Test 3 External peers with nlri specified
Setup
- Each node have distinct static routes defined in the address document.
- Each node has the following import statement in each configuration file
where the RDI parameter aa is set to be the RDI of the other machine.import proto idrp rdi aa { ip 128.1; # 1st IP nlri of node's configuration ip 128.2; # 2nd IP nlri of node's configuration ip 128.3; # 3rd IP nlri of node's configuration osi 49.0101; # 1st nlri of node's configuration osi 49.0102; # 2nd nlri of node's configuration osi 49.0103; # 3rd nlri of node's configuration all restrict; ip all restrict; };
- Two machines configured as external peers of each other.
Expected Result
All routes of the "other" machine will be imported. The routing table on each machine should have *all* of the statics of both config files.
Test 4 External peers with specified nlri restricted
Setup
- Each node have distinct static routes defined in the address document.
- Each node has the following import statement in each configuration file
Machine Aimport proto idrp rdi aa { ip 128.1 restrict; # 1st IP nlri of node's configuration ip 128.2 restrict; # 2nd IP nlri of node's configuration ip 128.3 restrict; # 3rd IP nlri of node's configuration osi 49.0101 restrict; # 1st nlri of node's configuration osi 49.0102 restrict; # 2nd nlri of node's configuration osi 49.0103 restrict; # 3rd nlri of node's configuration all; ip all; };
where the RDI parameter aa is set to be the RDI of the other machine.
- Two machines configured as external peers of each other.
Expected Result
All routes of the "other" machine will be imported. The routing table on each machine should have *all* of the statics of both config files.
External Peer tests repeated with Rib Refresh
Test 5 External peers with no routes passed
This test repeats Test 1 using a Rib Refresh to update routes.
Test 6 External peers with all routes passed
This test repeats Test 2 using a Rib Refresh to update routes.
Test 7 External peers with some routes passed (nlri & all)
This test repeats Test 3 using a Rib Refresh to update routes.
Test 8 External peers with some routes passed (nlri & all restrict)
This test repeats Test 4 using a Rib Refresh to update routes.
Internal Peer Tests with Delta Routes
Test 9 Internal peers, no routes pass
Setup
- Each node have distinct static routes defined in the address document.
- Each node has the following import statement in each configuration file
import proto idrp rdi aa { ip all restrict; all restrict; };where the RDI parameter aa is set to be the RDI of the other machine.
- Two machines configured as internal peers of each other.
Expected Result
All routes of the "other" machine will be imported. The routing table on each machine should have *none* of the statics of both config files.
Test 10 Internal peers, all routes pass
Setup
- Each node have distinct static routes defined in the address document.
import proto idrp rdi aa { ip all; all; };where the RDI parameter aa is set to be the RDI of the other machine. This differs from differs from Test 9 by having an "all" instead of an "all restrict".
- Two machines configured as internal peers of each other.
Expected Result
All routes of the "other" machine will be imported. The routing table on each machine should have *none* of the statics of both config files.
Test 11 Internal peers, some routes pass (nlri passed, all restricted)
Setup
If machine A has static routes A1, A2, A3, ..., and machine B has statics Bj, then the policies should be: Machine A:import proto idrp rdi
Machine B:{ B1; B2; ... Bj; ... all restrict; ip all restrict; }; import proto idrp rdi
{ A1; A2; ... Aj; ... all restrict; ip all restrict; };
If machine A has static routes A1, A2, A3, ..., and machine B has statics Bj, then the policies should be: Machine A:import proto idrp rdi
Machine B:{ B1 restrict; B2; ... Bj; ... # not all Bi's are restricted, but... ... Bk restrict; ... # ...some Bi's are all; ip all; }; import proto idrp rdi
{ A1; A2; ... Aj; ... # not all Ai's are restricted, but... ... Ak restrict; ... # ...some Ai's are all; ip all; };
All routes of the "other" machine will be imported. The routing table on each machine should have *all* of the statics of both config files.
Test 9 run with Rib Refresh instead of Delta routes.
Test 10 run with Rib Refresh instead of Delta routes.
Test 11 run with Rib Refresh instead of Delta routes.
Test 12 run with Rib Refresh instead of Delta routes.
Repeat above tests in Group 1 with these modifications to the import stanzas:
gated-pref value1 != gated_pref value2.
idrp-pref value3 != the default IDRP preference which is currently being used.
Routing tables as for original tests. Gated and/or IDRP preferences for *all* imported routes will be set as specified in the import stanza.
Set gated-pref on the import lines with value-1. Set idrp-pref on import lines with value-2. Repeat tests 3,4,7,8,11,12,15,16 with
NONE of the "gated-pref" or "idrp-pref" values (value 1-4) should be equal to the defaults. NO NLRI-specific preferences should be equal to any preferences set at the opening of the import stanza. Not all NLRI should have a specific preference. Import stanzas should be set up to allow at least one default value to be generated by a valid import() call.
Routing tables will be the same as in the original test; preferences should work in this manner: