-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Question template for user provided L1 (#8142)
* Add question template for input L1 edges * rev long description * Rename question; tweak description * fix ref Co-authored-by: Daniel Halperin <dan@intentionet.com>
- Loading branch information
Showing
3 changed files
with
73 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"class": "org.batfish.question.edges.EdgesQuestion", | ||
"differential": false, | ||
"instance": { | ||
"description": "Returns normalized Layer 1 edges that were input to Batfish.", | ||
"instanceName": "userProvidedLayer1Edges", | ||
"longDescription": "Lists Layer 1 edges after potentially normalizing node and interface names. All node names are lower-cased, and for nodes that appear in the snapshot, interface names are canonicalized based on the vendor. All input edges are in the output, including nodes and interfaces that do not appear in the snapshot.", | ||
"orderedVariableNames": [ | ||
"nodes", | ||
"remoteNodes" | ||
], | ||
"tags": [ | ||
"topology" | ||
], | ||
"variables": { | ||
"nodes": { | ||
"description": "Include edges whose first node matches this name or regex", | ||
"type": "nodeSpec", | ||
"value": ".*", | ||
"displayName": "Nodes" | ||
}, | ||
"remoteNodes": { | ||
"description": "Include edges whose second node matches this name or regex", | ||
"type": "nodeSpec", | ||
"value": ".*", | ||
"displayName": "Remote Nodes" | ||
} | ||
} | ||
}, | ||
"edgeType": "user_provided_layer1", | ||
"nodes": "${nodes}", | ||
"remoteNodes": "${remoteNodes}" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"class" : "org.batfish.question.edges.EdgesQuestion", | ||
"edgeType" : "USER_PROVIDED_LAYER1", | ||
"initial" : false, | ||
"nodes" : ".*", | ||
"remoteNodes" : ".*", | ||
"differential" : false, | ||
"includeOneTableKeys" : true, | ||
"instance" : { | ||
"description" : "Returns normalized Layer 1 edges that were input to Batfish.", | ||
"instanceName" : "qname", | ||
"longDescription" : "Lists Layer 1 edges after potentially normalizing node and interface names. All node names are lower-cased, and for nodes that appear in the snapshot, interface names are canonicalized based on the vendor. All input edges are in the output, including nodes and interfaces that do not appear in the snapshot.", | ||
"orderedVariableNames" : [ | ||
"nodes", | ||
"remoteNodes" | ||
], | ||
"tags" : [ | ||
"topology" | ||
], | ||
"variables" : { | ||
"nodes" : { | ||
"description" : "Include edges whose first node matches this name or regex", | ||
"displayName" : "Nodes", | ||
"optional" : false, | ||
"type" : "nodeSpec", | ||
"value" : ".*" | ||
}, | ||
"remoteNodes" : { | ||
"description" : "Include edges whose second node matches this name or regex", | ||
"displayName" : "Remote Nodes", | ||
"optional" : false, | ||
"type" : "nodeSpec", | ||
"value" : ".*" | ||
} | ||
} | ||
} | ||
} |