Giter Site home page Giter Site logo

mm-ctl's Introduction

mm-ctl

MidoNet port binding command line tool

Prerequisites

  • Go (>= 1.5)

mm-ctl depends on the specific versions of the libraries. Especially mm-ctl heavily depends on curator.go's InterProcessMutex to have the coherence with the lock of MidoNet agent against the virutal topology, and curator.go is not up-to-date to be compatible with the latest version of go-zookeeper. So the snapshots of dependencies are included in the codebase under vendor directory. Go 1.5 introduced the vendoring as its experimental feature and we leverage it for managing the dependencies.

Installation

The following commands generate the binary mm-ctl. You can use it directly or put anywhere you want.

$ GO15VENDOREXPERIMENT=1 go get
$ GO15VENDOREXPERIMENT=1 go build

Usage

mm-ctl assumes two config files are placed in the appropriate places, /etc/midolman/midolman.conf and /etc/midonet_host_id.properties. If you have them in the different paths, you can specify them with -config and -host-config for each other.

Binding the Neutron port to the interface

$ sudo mm-ctl bind 2738e706-6ec7-4b22-b43f-be20f7ad85cb b3f9a34d-veth

or

$ sudo mm-ctl -config /path/to/midolman.conf \
  -host-config /path/to/midonet_host_id.properties \
  bind 2738e706-6ec7-4b22-b43f-be20f7ad85cb b3f9a34d-veth

Unbinding the Neutron port

$ sudo mm-ctl unbind 2738e706-6ec7-4b22-b43f-be20f7ad85cb

or

$ sudo mm-ctl -config /path/to/midolman.conf \
  -host-config /path/to/midonet_host_id.properties \
  unbind 2738e706-6ec7-4b22-b43f-be20f7ad85cb

License

mm-ctl is released under Apache License, Version 2.0. See LICENSE for more details.

mm-ctl's People

Watchers

James Cloos avatar Dag Stenstad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.