Skip to content

Commit b5d1fc6

Browse files
authored
Merge network services (#392)
* Merge all network service extensions into main one using traits * Add unit test error_reporting * Increase volume attachment test timeout
1 parent f3b3c6f commit b5d1fc6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+780
-65
lines changed

phpunit.sample.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</testsuite>
1717
</testsuites>
1818
<php>
19-
<ini name="error_reporting" value=""/>
19+
<ini name="error_reporting" value="-1"/>
2020
<ini name="display_errors" value="On"/>
2121
<ini name="display_startup_errors" value="On"/>
2222
</php>

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</testsuite>
1313
</testsuites>
1414
<php>
15-
<ini name="error_reporting" value=""/>
15+
<ini name="error_reporting" value="-1"/>
1616
<ini name="display_errors" value="On"/>
1717
<ini name="display_startup_errors" value="On"/>
1818
</php>

samples/Networking/v2/floatingIPs/create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'scope' => ['project' => ['id' => '{projectId}']],
1313
]);
1414

15-
$networking = $openstack->networkingV2ExtLayer3();
15+
$networking = $openstack->networkingV2();
1616

1717
$floatingIp = $networking->createFloatingIp([
1818
"floatingNetworkId" => "{networkId}",

samples/Networking/v2/floatingIPs/delete.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
'scope' => ['project' => ['id' => '{projectId}']],
1313
]);
1414

15-
$openstack->networkingV2ExtLayer3()
16-
->getFloatingIp('{id}')
17-
->delete();
15+
$networking = $openstack->networkingV2();
16+
$floatIp = $networking->getFloatingIp('{id}');
17+
18+
$floatIp->delete();

samples/Networking/v2/floatingIPs/get.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
'scope' => ['project' => ['id' => '{projectId}']],
1313
]);
1414

15-
$floatingIp = $openstack->networkingV2ExtLayer3()
15+
$floatingIp = $openstack->networkingV2()
1616
->getFloatingIp('{id}');

samples/Networking/v2/floatingIPs/list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'scope' => ['project' => ['id' => '{projectId}']],
1313
]);
1414

15-
$floatingIps = $openstack->networkingV2ExtLayer3()
15+
$floatingIps = $openstack->networkingV2()
1616
->listFloatingIps();
1717

1818
foreach ($floatingIps as $floatingIp) {

samples/Networking/v2/floatingIPs/update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'scope' => ['project' => ['id' => '{projectId}']],
1313
]);
1414

15-
$floatingIp = $openstack->networkingV2ExtLayer3()
15+
$floatingIp = $openstack->networkingV2()
1616
->getFloatingIp('{id}');
1717

1818
$floatingIp->portId = '{newPortId}';

samples/Networking/v2/securityGroupRules/create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'scope' => ['project' => ['id' => '{projectId}']]
1313
]);
1414

15-
$networking = $openstack->networkingV2ExtSecGroups();
15+
$networking = $openstack->networkingV2();
1616

1717
/** @var \OpenStack\Networking\v2\Extensions\SecurityGroups\Models\SecurityGroupRule $rule */
1818
$rule = $networking->createSecurityGroupRule([

samples/Networking/v2/securityGroupRules/delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
]);
1414

1515
/** @var \OpenStack\Networking\v2\Extensions\SecurityGroups\Models\SecurityGroupRule $rule */
16-
$rule = $openstack->networkingV2ExtSecGroups()
16+
$rule = $openstack->networkingV2()
1717
->getSecurityGroupRule('{id}');
1818

1919
$rule->delete();

samples/Networking/v2/securityGroupRules/get.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
]);
1414

1515
/** @var \OpenStack\Networking\v2\Extensions\SecurityGroups\Models\SecurityGroupRule $rule */
16-
$rule = $openstack->networkingV2ExtSecGroups()
16+
$rule = $openstack->networkingV2()
1717
->getSecurityGroupRule('{id}');

0 commit comments

Comments
 (0)