Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

    Contrail provides compatibility with Neutron API. It covers all basic features, but not some service feature, like FWaaS.

    The reason for customer to use Neutron API is that, they want to deal with  single orchestration interface to manage both VM and networking.

    The reason to use Contrail API is that, it provides features that Neutron  API doesn't have and it performs lots better.

    Heat stack is also a good option. It provides a single interface on top of all OpenStack and Contrail APIs.


1- Need to know the API version (  http://172.30.54.71:8774/v2/  )

2- Openstack API listen on port 8774  ( http://<IP@>:8774 )

3- get the Token from Keystone ( port 5000 )


OpenStack REST API using Postman

https://www.youtube.com/watch?v=P3SqdJnA224


https://docs.openstack.org/juno/config-reference/content/list-of-compute-config-options.html

Default option:   osapi_compute_listen_port = 8774


root@vse2100-11:~# more /etc/nova/nova.conf | grep port
rabbit_port=5672
report_interval=10
novncproxy_port=5999
auth_port=35357



3- get the Token from Keystone ( port 5000 )


Method:

POST: http://172.30.54.71:5000/v2.0/tokens

In the Body:

{
"auth":{
"tenantName":"admin",
"passwordCredentials":{
"username":"admin",
"password":"contrail123"
}
}
}





"serviceCatalog":

"name": "nova"

 "name": "neutron"

"name": "cinderv2"

"name": "novav3"

"name": "glance"

"name": "heat-cfn"

"name": "cinder"

"name": "nova_ec2"

"name": "heat"

"name": "keystone"






  • No labels