Logo: Relish

  1. Sign in

Project: Phut

Vswitch.all

Background
Given
I run phut -v interactively
Scenarios
  • @sudo
Vswitch.all #=> []
When
I type "Vswitch.all"
Then
the output should contain "[]"
  • @sudo
Vswitch.all #=> [aVswitch]
Given
I type "Vswitch.create(name: 'firewall', dpid: 0xabc)"
When
I type "Vswitch.all"
Then
the output should contain:
[#<Vswitch name: "firewall", dpid: 0xabc, openflow_version: "1.0", bridge: "vsw_firewall">]
  • @sudo
Vswitch.all #=> [aVswitch]
Given
I type "Vswitch.create(dpid: 0xabc)"
When
I type "Vswitch.all"
Then
the output should contain:
[#<Vswitch name: "0xabc", dpid: 0xabc, openflow_version: "1.0", bridge: "vsw_0xabc">]

Last published about 6 years ago by Yasuhito Takamiya.