-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add support for verifying silent aggregate link failures
Signed-off-by: Joachim Wiberg <[email protected]>
- Loading branch information
Showing
8 changed files
with
632 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
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,45 @@ | ||
=== Link Aggregation Silent Failure | ||
==== Description | ||
Verify communication over a link aggregate in static and LACP mode when | ||
member links stop passing traffic without any carrier loss. In static | ||
mode the ARP monitor is used in both ends of the lag, in LACP mode this | ||
is not necessary, and must in fact be disabled. | ||
|
||
.Logical network setup, link breakers (lb1 & lb2) here managed by host PC | ||
ifdef::topdoc[] | ||
image::../../test/case/ietf_interfaces/lag_failure/lag-failure.svg[] | ||
endif::topdoc[] | ||
ifndef::topdoc[] | ||
ifdef::testgroup[] | ||
image::lag_failure/lag-failure.svg[] | ||
endif::testgroup[] | ||
ifndef::testgroup[] | ||
image::lag-failure.svg[] | ||
endif::testgroup[] | ||
endif::topdoc[] | ||
|
||
The host verifies connectivity with dut2 via dut1 over the aggregate for | ||
each test step using the `mon` interface. | ||
|
||
==== Topology | ||
ifdef::topdoc[] | ||
image::../../test/case/ietf_interfaces/lag_failure/topology.svg[Link Aggregation Silent Failure topology] | ||
endif::topdoc[] | ||
ifndef::topdoc[] | ||
ifdef::testgroup[] | ||
image::lag_failure/topology.svg[Link Aggregation Silent Failure topology] | ||
endif::testgroup[] | ||
ifndef::testgroup[] | ||
image::topology.svg[Link Aggregation Silent Failure topology] | ||
endif::testgroup[] | ||
endif::topdoc[] | ||
==== Test sequence | ||
. Set up topology and attach to target DUTs | ||
. Set up static link aggregate, lag0, on dut1 and dut2 | ||
. Verify failure modes for static mode | ||
. Set up LACP link aggregate, lag0, on dut1 and dut2 | ||
. Verify failure modes for lacp mode | ||
|
||
|
||
<<< | ||
|
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,218 @@ | ||
{ | ||
"ietf-interfaces:interfaces": { | ||
"interface": [ | ||
{ | ||
"name": "br0", | ||
"type": "infix-if-type:bridge", | ||
"enabled": true, | ||
"ietf-ip:ipv4": { | ||
"address": [ | ||
{ | ||
"ip": "192.168.2.41", | ||
"prefix-length": 24 | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "e1", | ||
"type": "infix-if-type:etherlike", | ||
"ietf-ip:ipv6": {} | ||
}, | ||
{ | ||
"name": "e2", | ||
"type": "infix-if-type:etherlike", | ||
"ietf-ip:ipv6": {}, | ||
"infix-interfaces:bridge-port": { | ||
"bridge": "br0" | ||
} | ||
}, | ||
{ | ||
"name": "e3", | ||
"type": "infix-if-type:etherlike", | ||
"enabled": true, | ||
"ietf-ip:ipv6": {}, | ||
"infix-interfaces:lag-port": { | ||
"lag": "lag0" | ||
} | ||
}, | ||
{ | ||
"name": "e4", | ||
"type": "infix-if-type:etherlike", | ||
"enabled": true, | ||
"ietf-ip:ipv6": {}, | ||
"infix-interfaces:lag-port": { | ||
"lag": "lag0" | ||
} | ||
}, | ||
{ | ||
"name": "e5", | ||
"type": "infix-if-type:etherlike", | ||
"ietf-ip:ipv6": {} | ||
}, | ||
{ | ||
"name": "e7", | ||
"type": "infix-if-type:etherlike", | ||
"ietf-ip:ipv6": {} | ||
}, | ||
{ | ||
"name": "e8", | ||
"type": "infix-if-type:etherlike", | ||
"ietf-ip:ipv6": {} | ||
}, | ||
{ | ||
"name": "lag0", | ||
"type": "infix-if-type:lag", | ||
"enabled": true, | ||
"infix-interfaces:lag": { | ||
"mode": "lacp", | ||
"lacp": { | ||
"rate": "fast" | ||
}, | ||
"arp-monitor": { | ||
"interval": 100, | ||
"peer": [ | ||
"192.168.2.42" | ||
] | ||
}, | ||
"link-monitor": { | ||
"interval": 100 | ||
} | ||
}, | ||
"infix-interfaces:bridge-port": { | ||
"bridge": "br0" | ||
} | ||
}, | ||
{ | ||
"name": "lo", | ||
"type": "infix-if-type:loopback", | ||
"ietf-ip:ipv4": { | ||
"address": [ | ||
{ | ||
"ip": "127.0.0.1", | ||
"prefix-length": 8 | ||
} | ||
] | ||
}, | ||
"ietf-ip:ipv6": { | ||
"address": [ | ||
{ | ||
"ip": "::1", | ||
"prefix-length": 128 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
"ietf-keystore:keystore": { | ||
"asymmetric-keys": { | ||
"asymmetric-key": [ | ||
{ | ||
"name": "genkey", | ||
"public-key-format": "ietf-crypto-types:ssh-public-key-format", | ||
"public-key": "MIIBCgKCAQEAs7RX6r3flRmw6TiWpGclHrFxghsjZxhO1hjC3w0fkgprf08vXB4X+oXtqNx6wNInt1muVo6ALtZu+zBJZsL9wMJE3fbrMTKTWRY/P+1m5YgsTwihm7ucRh5LH6FPHQq3ezcS590/uOvigbkP6ofTiqvS4hrA8QB/EyBiKKPmiNOvKyBaMNGiXWy9EgQeYRyjthIBdh7zwgzpMk+P86n5dQQo1uXwimKGGkMNlUW9wilxkKFdN9gqTUoID+C1cQTNLoG4BtmZYOBvyJDn0SRGi72n2KkudAunIUUgUAjwPf9T/FjkxJBZJnFZNS2Fsxa7RBRk7Swy2RivUQPkQ6hdEQIDAQAB", | ||
"private-key-format": "ietf-crypto-types:rsa-private-key-format", | ||
"cleartext-private-key": "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCztFfqvd+VGbDpOJakZyUesXGCGyNn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1DLojg9PE70kNb5v5BVVeO8AxmzpY1x8y9m5VZaBtWQ1LYAeCnPjhajfvHUDR+4wR6jDOFuvfzh9pl8l3vtExnW0uJZAnNEd9ly2N101GoHHqtAoGANBlep9xMeQOH9OnezRBRLl5L57ZEqIUdAZm4EgmwnzVnvtgO438SRexok96qkDRRrUqrmEcO94L4kDkBAeh2fpUIXR+AOiRQSzUieejNurT0N56+UqRMPY8hlkvUEw7uVxPmxOS+QxwiKxAacg+ZWXy84Ymkn6yghK0FuORsAcsCgYEAvimXpxeZDJeTKouofwTjNafgE/SE2BEnYPGjun6o1iWYS1ifrCXpQTXGbypXdefgrYg+qd6gu+opYstex3S11gONA/HewOZ6Tr3FKfByAH7zovUwqDfFYnphsj0njXjsHL+tqUz3ARls1K6zbHxzNUnyzSeB2byZwScXBv6s32o=" | ||
} | ||
] | ||
} | ||
}, | ||
"ietf-netconf-acm:nacm": { | ||
"enable-nacm": true, | ||
"groups": { | ||
"group": [ | ||
{ | ||
"name": "admin", | ||
"user-name": [ | ||
"admin" | ||
] | ||
} | ||
] | ||
}, | ||
"rule-list": [ | ||
{ | ||
"name": "admin-acl", | ||
"group": [ | ||
"admin" | ||
], | ||
"rule": [ | ||
{ | ||
"name": "permit-all", | ||
"module-name": "*", | ||
"access-operations": "*", | ||
"action": "permit", | ||
"comment": "Allow 'admin' group complete access to all operations and data." | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "default-deny-all", | ||
"group": [ | ||
"*" | ||
], | ||
"rule": [ | ||
{ | ||
"name": "deny-password-read", | ||
"module-name": "ietf-system", | ||
"path": "/ietf-system:system/authentication/user/password", | ||
"access-operations": "*", | ||
"action": "deny" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"ietf-netconf-server:netconf-server": { | ||
"listen": { | ||
"endpoints": { | ||
"endpoint": [ | ||
{ | ||
"name": "default-ssh", | ||
"ssh": { | ||
"tcp-server-parameters": { | ||
"local-address": "::" | ||
}, | ||
"ssh-server-parameters": { | ||
"server-identity": { | ||
"host-key": [ | ||
{ | ||
"name": "default-key", | ||
"public-key": { | ||
"central-keystore-reference": "genkey" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"ietf-system:system": { | ||
"hostname": "dut1", | ||
"authentication": { | ||
"user": [ | ||
{ | ||
"name": "admin", | ||
"password": "$factory$", | ||
"infix-system:shell": "infix-system:bash" | ||
} | ||
] | ||
} | ||
}, | ||
"infix-meta:meta": { | ||
"version": "1.2" | ||
}, | ||
"infix-services:mdns": { | ||
"enabled": true | ||
}, | ||
"infix-services:web": { | ||
"enabled": true, | ||
"restconf": { | ||
"enabled": true | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.