Logo: Relish

  1. Sign in

Project: Phut

Vswitch#ports

TODO: Vswitch#ports should return an array of Port object
that contains its port number

Background
Given
I run phut -v interactively
And
I type "vswitch = Vswitch.create(dpid: 0xabc)"
Scenarios
  • @sudo
Vswitch#ports #=> []
When
I type "vswitch.ports"
And
sleep 5
Then
the output should contain "[]"
  • @sudo
Vswitch#ports
Given
I type "link = Link.create('a', 'b')"
And
I type "vswitch.add_port link.device('a')"
When
I type "vswitch.ports"
And
sleep 5
Then
the output should contain:
["L0_a"]
  • @sudo
Vswitch#ports
Given
I type "link = Link.create('a', 'b')"
And
I type "vswitch.add_numbered_port 2, link.device('a')"
When
I type "vswitch.ports"
And
sleep 5
Then
the output should contain:
["L0_a"]

Last published about 6 years ago by Yasuhito Takamiya.