-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
95 l3out route map with missing target (#102)
* Add route-map missing-target check * Update doc
- Loading branch information
Showing
7 changed files
with
553 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
tests/l3out_route_map_missing_target_check/rtctrlProfile_missing_target.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[ | ||
{ | ||
"rtctrlProfile": { | ||
"attributes": { | ||
"annotation": "", | ||
"autoContinue": "no", | ||
"childAction": "", | ||
"descr": "", | ||
"direction": "import", | ||
"dn": "uni/tn-TK/out-OSPF/prof-RMAP1", | ||
"extMngdBy": "", | ||
"lcOwn": "local", | ||
"level": "0", | ||
"modTs": "2024-04-17T13:01:33.705-07:00", | ||
"monPolDn": "uni/tn-common/monepg-default", | ||
"name": "RMAP1", | ||
"nameAlias": "", | ||
"ownerKey": "", | ||
"ownerTag": "", | ||
"status": "", | ||
"type": "combinable", | ||
"uid": "15374", | ||
"userdom": ":" | ||
}, | ||
"children": [ | ||
{ | ||
"rtctrlCtxP": { | ||
"attributes": { | ||
"action": "permit", | ||
"annotation": "", | ||
"childAction": "", | ||
"descr": "", | ||
"extMngdBy": "", | ||
"lcOwn": "local", | ||
"modTs": "2024-04-18T12:14:37.550-07:00", | ||
"monPolDn": "uni/tn-common/monepg-default", | ||
"name": "CTX1", | ||
"nameAlias": "", | ||
"order": "0", | ||
"rn": "ctx-CTX1", | ||
"status": "", | ||
"uid": "15374", | ||
"userdom": ":" | ||
}, | ||
"children": [ | ||
{ | ||
"rtctrlRsCtxPToSubjP": { | ||
"attributes": { | ||
"annotation": "", | ||
"childAction": "", | ||
"extMngdBy": "", | ||
"forceResolve": "yes", | ||
"lcOwn": "local", | ||
"modTs": "2024-04-18T12:16:27.269-07:00", | ||
"monPolDn": "uni/tn-common/monepg-default", | ||
"rType": "mo", | ||
"rn": "rsctxPToSubjP-Subj1", | ||
"state": "missing-target", | ||
"stateQual": "none", | ||
"status": "", | ||
"tCl": "rtctrlSubjP", | ||
"tContextDn": "", | ||
"tDn": "", | ||
"tRn": "subj-Subj1", | ||
"tType": "name", | ||
"tnRtctrlSubjPName": "Subj1", | ||
"uid": "15374", | ||
"userdom": ":all:" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] |
154 changes: 154 additions & 0 deletions
154
..._route_map_missing_target_check/rtctrlProfile_multiple_l3out_multiple_missing_target.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
[ | ||
{ | ||
"rtctrlProfile": { | ||
"attributes": { | ||
"annotation": "", | ||
"autoContinue": "no", | ||
"childAction": "", | ||
"descr": "", | ||
"direction": "import", | ||
"dn": "uni/tn-TK/out-OSPF/prof-RMAP1", | ||
"extMngdBy": "", | ||
"lcOwn": "local", | ||
"level": "0", | ||
"modTs": "2024-04-17T13:01:33.705-07:00", | ||
"monPolDn": "uni/tn-common/monepg-default", | ||
"name": "RMAP1", | ||
"nameAlias": "", | ||
"ownerKey": "", | ||
"ownerTag": "", | ||
"status": "", | ||
"type": "combinable", | ||
"uid": "15374", | ||
"userdom": ":" | ||
}, | ||
"children": [ | ||
{ | ||
"rtctrlCtxP": { | ||
"attributes": { | ||
"action": "permit", | ||
"annotation": "", | ||
"childAction": "", | ||
"descr": "", | ||
"extMngdBy": "", | ||
"lcOwn": "local", | ||
"modTs": "2024-04-18T12:14:37.550-07:00", | ||
"monPolDn": "uni/tn-common/monepg-default", | ||
"name": "CTX1", | ||
"nameAlias": "", | ||
"order": "0", | ||
"rn": "ctx-CTX1", | ||
"status": "", | ||
"uid": "15374", | ||
"userdom": ":" | ||
}, | ||
"children": [ | ||
{ | ||
"rtctrlRsCtxPToSubjP": { | ||
"attributes": { | ||
"annotation": "", | ||
"childAction": "", | ||
"extMngdBy": "", | ||
"forceResolve": "yes", | ||
"lcOwn": "local", | ||
"modTs": "2024-04-18T14:44:30.311-07:00", | ||
"monPolDn": "uni/tn-common/monepg-default", | ||
"rType": "mo", | ||
"rn": "rsctxPToSubjP-Subj1", | ||
"state": "missing-target", | ||
"stateQual": "none", | ||
"status": "", | ||
"tCl": "rtctrlSubjP", | ||
"tContextDn": "", | ||
"tDn": "", | ||
"tRn": "subj-Subj1", | ||
"tType": "name", | ||
"tnRtctrlSubjPName": "Subj1", | ||
"uid": "15374", | ||
"userdom": ":all:" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"rtctrlProfile": { | ||
"attributes": { | ||
"annotation": "", | ||
"autoContinue": "no", | ||
"childAction": "", | ||
"descr": "", | ||
"direction": "import", | ||
"dn": "uni/tn-TK/out-BGP/prof-RMAP2", | ||
"extMngdBy": "", | ||
"lcOwn": "local", | ||
"level": "0", | ||
"modTs": "2024-04-18T14:43:52.378-07:00", | ||
"monPolDn": "uni/tn-common/monepg-default", | ||
"name": "RMAP2", | ||
"nameAlias": "", | ||
"ownerKey": "", | ||
"ownerTag": "", | ||
"status": "", | ||
"type": "combinable", | ||
"uid": "15374", | ||
"userdom": ":" | ||
}, | ||
"children": [ | ||
{ | ||
"rtctrlCtxP": { | ||
"attributes": { | ||
"action": "deny", | ||
"annotation": "", | ||
"childAction": "", | ||
"descr": "", | ||
"extMngdBy": "", | ||
"lcOwn": "local", | ||
"modTs": "2024-04-18T14:43:52.378-07:00", | ||
"monPolDn": "uni/tn-common/monepg-default", | ||
"name": "CTX0", | ||
"nameAlias": "", | ||
"order": "0", | ||
"rn": "ctx-CTX0", | ||
"status": "", | ||
"uid": "15374", | ||
"userdom": ":" | ||
}, | ||
"children": [ | ||
{ | ||
"rtctrlRsCtxPToSubjP": { | ||
"attributes": { | ||
"annotation": "", | ||
"childAction": "", | ||
"extMngdBy": "", | ||
"forceResolve": "yes", | ||
"lcOwn": "local", | ||
"modTs": "2024-04-18T14:44:30.311-07:00", | ||
"monPolDn": "uni/tn-common/monepg-default", | ||
"rType": "mo", | ||
"rn": "rsctxPToSubjP-Subj0", | ||
"state": "missing-target", | ||
"stateQual": "none", | ||
"status": "", | ||
"tCl": "rtctrlSubjP", | ||
"tContextDn": "", | ||
"tDn": "", | ||
"tRn": "subj-Subj0", | ||
"tType": "name", | ||
"tnRtctrlSubjPName": "Subj0", | ||
"uid": "15374", | ||
"userdom": ":all:" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] |
Oops, something went wrong.