Name: contrail
Owner: Juniper Networks
Description: Contrail repo for core components (go based)
Created: 2017-12-05 17:09:07.0
Updated: 2018-03-31 22:40:11.0
Pushed: 2018-04-02 23:24:30.0
Homepage: null
Size: 36141
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repository holds Go implementation for Contrail projects. The goal of this project is to realize Go-based implementation & etcd based such as Kubernetes in order to improve performance, scale and ease operation.
We are planning to add following sub components.
Currently, this project is POC stage so any external/internal API or design subject to change up to community discussion.
et -u github.com/Juniper/contrail/cmd/contrailutil
Note that go get -u github.com/Juniper/contrail
fails because we don't
commit generated code.
deps
generate
install
tup testenv using docker
testenv
u need wait db process up
reset_db
Note that depending on your docker configuration you may need root permissions.
Run processes
rail -c sample/contrail.yml run
Note that you can overwrite configuration parameters using environment variable with prefix “CONTRAIL_”
For example CONTRAIL_DATABASE_DEBUG is overwriting database.debug value.
RAIL_DATABASE_DEBUG=true contrail -c sample/contrail.yml process
Run CLI
rt CONTRAIL_CONFIG=sample/cli.yml
ow Schema
railcli schema virtual_network
eate resources
railcli sync sample/sample_resource.yml
st resources
railcli list virtual_network --detail
lete resources
railcli delete sample/sample_resource.yml
For more cli command see CLI Usage,
Note that schema stored here is just a cache for helping development. Developers should make sure download latest schema from http://github.com/Juniper/contrail-api-client
JSON version stored in public/schema.json
Templates for code generation based on this schema are stored in tools/templates Template configuration You can add your template on template_config.yaml.
test
You can print out full sql trace too.
RAIL_DATABASE_DEBUG=true make test
Repository holds source code for following CLI applications:
contrail
- contains API Server, Agent, Sync
and API Server command line clientcontrailcli
- contains API Server command line clientcontrailschema
- code generator by schema definitionscontrailutil
- contains development utilitiesShow possible commands of application:
rail -h
Show detailed information about specific command:
rail <command> -h
API Server supports Keystone V3 authentication and RBAC. API Server has minimal Keystone API V3 support for standalone use case. See a configuration example
make lint
output cleanWe follow openstack way of review. https://docs.openstack.org/infra/manual/developers.html This is our review system. https://review.opencontrail.org
Setup gerrit account. Sign CLA.
Install git-review.
install git-review
Send git review command.
review
See docs folder.