Nmstate

A Declarative API for Host Network Management

View on GitHub

Infiniband Over IP

This is the example YAML for creating PKEY Infiniband over IP

---
interfaces:
- name: mlx5_ib0.80fe
  type: infiniband
  state: up
  infiniband:
    base-iface: mlx5_ib0
    mode: datagram
    pkey: '0x80fe'

Pleas refer to YAML API document for detail meaning of each property.

Bond Over Infiniband

Only the active-backup mode of bond is supported when attaching infiniband over IP to bond. Example YAML:

---
interfaces:
- name: mlx5_ib0.80fe
  type: infiniband
  state: up
  infiniband:
    base-iface: mlx5_ib0
    mode: datagram
    pkey: '0x80ff'
- name: mlx5_ib1.80fe
  type: infiniband
  state: up
  infiniband:
    base-iface: mlx5_ib1
    mode: datagram
    pkey: '0x80fe'
- name: bond0
  type: bond
  state: up
  bond:
    mode: active-backup
    port:
    - mlx5_ib0.80fe
    - mlx5_ib1.80fe