Committed by
Gerrit Code Review
Updated linkupdate test scenario to include 'expected' attribute.
Change-Id: I03e6f61e2b31df101690c68b68e39f3dd7917c6a
Showing
10 changed files
with
34 additions
and
0 deletions
| 1 | +{ | ||
| 2 | + "event": "updateLink", | ||
| 3 | + "payload": { | ||
| 4 | + "id": "of:000000000000000b/2-of:000000000000000a/1", | ||
| 5 | + "type": "direct", | ||
| 6 | + "online": true, | ||
| 7 | + "expected": false, | ||
| 8 | + "linkWidth": 1.2, | ||
| 9 | + "src": "of:000000000000000b", | ||
| 10 | + "srcPort": "2", | ||
| 11 | + "dst": "of:000000000000000a", | ||
| 12 | + "dstPort": "1" | ||
| 13 | + } | ||
| 14 | +} |
| 1 | +{ | ||
| 2 | + "event": "updateLink", | ||
| 3 | + "payload": { | ||
| 4 | + "id": "of:000000000000000a/1-of:000000000000000b/2", | ||
| 5 | + "type": "direct", | ||
| 6 | + "online": true, | ||
| 7 | + "expected": false, | ||
| 8 | + "linkWidth": 1.2, | ||
| 9 | + "src": "of:000000000000000a", | ||
| 10 | + "srcPort": "1", | ||
| 11 | + "dst": "of:000000000000000b", | ||
| 12 | + "dstPort": "2" | ||
| 13 | + } | ||
| 14 | +} |
| ... | @@ -4,6 +4,7 @@ | ... | @@ -4,6 +4,7 @@ |
| 4 | "id": "of:000000000000000a/1-of:000000000000000b/2", | 4 | "id": "of:000000000000000a/1-of:000000000000000b/2", |
| 5 | "type": "direct", | 5 | "type": "direct", |
| 6 | "online": true, | 6 | "online": true, |
| 7 | + "expected": true, | ||
| 7 | "linkWidth": 1.2, | 8 | "linkWidth": 1.2, |
| 8 | "src": "of:000000000000000a", | 9 | "src": "of:000000000000000a", |
| 9 | "srcPort": "1", | 10 | "srcPort": "1", | ... | ... |
| ... | @@ -4,6 +4,7 @@ | ... | @@ -4,6 +4,7 @@ |
| 4 | "id": "of:000000000000000b/2-of:000000000000000a/1", | 4 | "id": "of:000000000000000b/2-of:000000000000000a/1", |
| 5 | "type": "direct", | 5 | "type": "direct", |
| 6 | "online": true, | 6 | "online": true, |
| 7 | + "expected": true, | ||
| 7 | "linkWidth": 1.2, | 8 | "linkWidth": 1.2, |
| 8 | "src": "of:000000000000000b", | 9 | "src": "of:000000000000000b", |
| 9 | "srcPort": "2", | 10 | "srcPort": "2", | ... | ... |
| ... | @@ -4,6 +4,7 @@ | ... | @@ -4,6 +4,7 @@ |
| 4 | "id": "of:000000000000000a/1-of:000000000000000b/2", | 4 | "id": "of:000000000000000a/1-of:000000000000000b/2", |
| 5 | "type": "direct", | 5 | "type": "direct", |
| 6 | "online": false, | 6 | "online": false, |
| 7 | + "expected": true, | ||
| 7 | "linkWidth": 1.2, | 8 | "linkWidth": 1.2, |
| 8 | "src": "of:000000000000000a", | 9 | "src": "of:000000000000000a", |
| 9 | "srcPort": "1", | 10 | "srcPort": "1", | ... | ... |
| ... | @@ -4,6 +4,7 @@ | ... | @@ -4,6 +4,7 @@ |
| 4 | "id": "of:000000000000000b/2-of:000000000000000a/1", | 4 | "id": "of:000000000000000b/2-of:000000000000000a/1", |
| 5 | "type": "direct", | 5 | "type": "direct", |
| 6 | "online": false, | 6 | "online": false, |
| 7 | + "expected": true, | ||
| 7 | "linkWidth": 1.2, | 8 | "linkWidth": 1.2, |
| 8 | "src": "of:000000000000000b", | 9 | "src": "of:000000000000000b", |
| 9 | "srcPort": "2", | 10 | "srcPort": "2", | ... | ... |
| ... | @@ -4,6 +4,7 @@ | ... | @@ -4,6 +4,7 @@ |
| 4 | "id": "of:000000000000000a/1-of:000000000000000b/2", | 4 | "id": "of:000000000000000a/1-of:000000000000000b/2", |
| 5 | "type": "direct", | 5 | "type": "direct", |
| 6 | "online": true, | 6 | "online": true, |
| 7 | + "expected": true, | ||
| 7 | "linkWidth": 1.2, | 8 | "linkWidth": 1.2, |
| 8 | "src": "of:000000000000000a", | 9 | "src": "of:000000000000000a", |
| 9 | "srcPort": "1", | 10 | "srcPort": "1", | ... | ... |
| ... | @@ -4,6 +4,7 @@ | ... | @@ -4,6 +4,7 @@ |
| 4 | "id": "of:000000000000000b/2-of:000000000000000a/1", | 4 | "id": "of:000000000000000b/2-of:000000000000000a/1", |
| 5 | "type": "direct", | 5 | "type": "direct", |
| 6 | "online": true, | 6 | "online": true, |
| 7 | + "expected": true, | ||
| 7 | "linkWidth": 1.2, | 8 | "linkWidth": 1.2, |
| 8 | "src": "of:000000000000000b", | 9 | "src": "of:000000000000000b", |
| 9 | "srcPort": "2", | 10 | "srcPort": "2", | ... | ... |
-
Please register or login to post a comment