contiv-init

command
v2.0.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 42 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Contiv-init is the init process of the contiv vswitch POD. It starts VPP and contiv-agent processes in the correct order (using the supervisor xmlrpc API), and does the STN (Steal the NIC) pre-configuration on VPP and in the host stack.

In STN case, the order of contiv-init operation is:

  • read contiv YAML config,
  • determine interface to be stolen from the config,
  • request stealing the NIC from the STN Daemon,
  • start VPP,
  • pre-configure the stolen interface on VPP,
  • configure VPP-host connectivity,
  • connect to ETCD,
  • persist the VPP and host config in ETCD,
  • start the contiv-agent.

In non-STN case, contiv init operates as follows:

  • read contiv YAML config,
  • start VPP,
  • start contiv-agent.

In order to request STN of an interface, specify requested Linux interface name in StealInterface in the NodeConfig part of the contiv-vpp deployment yaml, e.g.:

     NodeConfig:
		- NodeName: "ubuntu-1"
		  StealInterface: "enp0s8"

Also, do not forget to put proper PCI address into the VPP startup config file, e.g. in /etc/vpp/contiv-vswitch.conf

...
dpdk {
  dev 0000:00:08.0
}
...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL