Adding a VTEP

Use this command to add a hardware VTEP to MidoNet.

Syntax

vtep add management-ip <vtep-ip-address> management-port <vtep-port> tunnel-zone <tunnel-zone-alias>

where vtep-ip-address and vtep-port are the VTEP’s management IP address and port, and tunnel-zone-alias is used to determine the interface that will be used as the other end point of the VXLAN tunnel (in the MidoNet Agent).

Result

If the command runs successfully it writes the information you provided with it to Zookeeper. The command returns an error message, if a VTEP with these parameters already exists.

Examples

An example of a successful command:

midonet> vtep add management-ip 192.168.2.10 management-port 6633 tunnel-zone tzone0
vtep vtep0 name VTEP-NAME management-ip 192.168.2.10 management-port 6633 tunnel-zone tzone0 connection-state connected

An example of an unsuccessful command:

midonet> vtep add management-ip 192.168.2.10 management-port 6633
Internal error: {"message":"Validation error(s) found","code":400,"violations":[{"message":"Tunnel zone ID is not valid.","property":"tunnelZoneId"}]}
Questions? Discuss on Mailing Lists or Chat.
Found an error? Report a bug.


loading table of contents...