diff options
| author | root <root@kabir-PC> | 2016-02-23 21:00:31 +0100 |
|---|---|---|
| committer | root <root@kabir-PC> | 2016-02-23 21:00:31 +0100 |
| commit | 5665d317db7763650e7827c20f6fe131bcce9ad3 (patch) | |
| tree | 739c9190f784c3e7ab45c83bc6473510588b4abc /server | |
| parent | d2f5ae5c83ef5bc41cf430ace79769459b4acbf8 (diff) | |
liste des cird
Diffstat (limited to 'server')
| -rw-r--r-- | server/Test/DisplayListCidr.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/server/Test/DisplayListCidr.php b/server/Test/DisplayListCidr.php new file mode 100644 index 0000000..119b218 --- /dev/null +++ b/server/Test/DisplayListCidr.php @@ -0,0 +1,26 @@ +<?php + +ini_set('display_errors', 1); +date_default_timezone_set("Europe/Paris"); +require 'vendor/autoload.php'; + + $options = Array(); + $options["user"] = Array("name"=>"admin", "password"=>"ae5or6cn", "domain"=>["id"=>"Default"]); + $options["scope"] = Array("project"=>Array("name"=>"admin", "domain"=>["id"=>"Default"])); + $options["authUrl"] = "http://148.60.11.31:5000/v3"; + $openstack = new OpenStack\OpenStack($options); + $networking = $openstack->networkingV2(["region"=>"RegionOne"]); + $ls = $networking->listSubnets(); + + foreach ($ls as $subnet) { + echo $subnet->cidr."<br>"; +} + + + + + + + + + |
