We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30de55e commit 7f0960dCopy full SHA for 7f0960d
src/eCloud/VipClient.php
@@ -26,6 +26,28 @@ public function getEntityMap()
26
];
27
}
28
29
+ public function getInternalIp(Vip $vip)
30
+ {
31
+ if (empty($vip->ipAddressId)) {
32
+ return null;
33
+ }
34
+
35
+ return $this->ipAddresses()->getById($vip->ipAddressId)->ipAddress;
36
37
38
+ public function getFloatingIp(Vip $vip)
39
40
+ if (!empty($vip->ipAddressId)) {
41
+ $floatingIp = $this->floatingIps()->getAll(['resource_id' => $vip->ipAddressId]);
42
43
+ if (count($floatingIp) > 0) {
44
+ return $floatingIp[0];
45
46
47
48
49
50
51
public function loadEntity($data)
52
{
53
return new Vip(
0 commit comments