Skip to content

Commit

Permalink
added tests for default and user-defined MTU values
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Sep 20, 2023
1 parent 04cefaf commit 06121aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/01-smoke/01-basic-flow.robot
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,17 @@ Verify links in node l1
Log ${output}
Should Be Equal As Integers ${rc} 0
Should Contain ${output} state UP
# testing user-defined MTU is set
Should Contain ${output} 2000

${rc} ${output} = Run And Return Rc And Output
... ${runtime-cli-exec-cmd} clab-${lab-name}-l1 ip link show eth2
Log ${output}
Should Be Equal As Integers ${rc} 0
Should Contain ${output} state UP
# testing default MTU is set
Should Contain ${output} 9500

${rc} ${output} = Run And Return Rc And Output
... ${runtime-cli-exec-cmd} clab-${lab-name}-l1 ip link show eth3
Log ${output}
Expand Down
2 changes: 1 addition & 1 deletion tests/01-smoke/01-linux-nodes.clab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ topology:

links:
- endpoints: ["l1:eth1", "l2:some1"]
mtu: 1500
mtu: 2000
vars:
foo: bar
some: ["thing", "else"]
Expand Down

0 comments on commit 06121aa

Please sign in to comment.