16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/fog/baremetal/openstack/requests/list_ports.rb', line 16
def list_ports(_options = {})
response = Excon::Response.new
response.status = [200, 204][rand(2)]
response.body = {
"ports" => [
{
"address" => "fe:54:00:77:07:d9",
"links" => [
{
"href" => "http://localhost:6385/v1/ports/27e3153e-d5bf-4b7e-b517-fb518e17f34c",
"rel" => "self"
},
{
"href" => "http://localhost:6385/ports/27e3153e-d5bf-4b7e-b517-fb518e17f34c",
"rel" => "bookmark"
}
],
"uuid" => Fog::UUID.uuid
}
]
}
response
end
|