Vswitch.all
Background:
- Given I run `phut -v` interactively
Scenario: Vswitch.all #=> []
- When I type "
Vswitch.all" - Then the output should contain "
[]"
Scenario: Vswitch.all #=> [aVswitch]
- Given I type "
Vswitch.create(name: 'firewall', dpid: 0xabc)" - When I type "
Vswitch.all" - Then the output should contain:
text
[#<Vswitch name: "firewall", dpid: 0xabc, openflow_version: 1.0, tcp_port: 6653>]
Scenario: Vswitch.all #=> [aVswitch]
- Given I type "
Vswitch.create(dpid: 0xabc)" - When I type "
Vswitch.all" - Then the output should contain:
text
[#<Vswitch name: "0xabc", dpid: 0xabc, openflow_version: 1.0, tcp_port: 6653>]
Source: features/shell/vswitch.all.feature at commit babb3554, Phut (GPL license).