Skip to content

Commit f92a7bb

Browse files
authored
Merge pull request #189 from fdmsantos/FloatingIps
Adding possibility to filter floating ips by TennantId
2 parents 45d48db + 74bb76a commit f92a7bb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Networking/v2/Extensions/Layer3/Api.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public function getFloatingIps(): array
3434
return [
3535
'method' => 'GET',
3636
'path' => $this->pathPrefix . '/floatingips',
37-
'params' => [],
37+
'params' => [
38+
'tenantId' => $this->params->queryTenantId(),
39+
],
3840
];
3941
}
4042

src/Networking/v2/Extensions/Layer3/Service.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public function getFloatingIp($id): FloatingIp
4242
/**
4343
* @return \Generator
4444
*/
45-
public function listFloatingIps(): \Generator
45+
public function listFloatingIps(array $options = []): \Generator
4646
{
47-
return $this->floatingIp()->enumerate($this->api->getFloatingIps());
47+
return $this->floatingIp()->enumerate($this->api->getFloatingIps(), $options);
4848
}
4949

5050
/**

0 commit comments

Comments
 (0)