Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
themeMidnight
# iptables -t nat -F
# iptables -F
# iptables -X

SONA CNI Installation

Download SONA CNI installation yml fileInstall python-pip and jinja2 dependency.

Code Block
languagebash
themeMidnight
# wgetrpm -Uvh https://rawdl.githubusercontentfedoraproject.comorg/pub/sonaprojectepel/k8sepel-release-sona-ansible/master/roles/kubesona/files/onos.yml

...

latest-7.noarch.rpm
# yum install python-pip -y
# pip install jinja2-cli


Specify external_gateway_ip and external_interface and compose a valid onos.yml.

Code Block
languagebash
themeMidnight
# wget http://bit.ly/2RidmZc && jinja2 2RidmZc -D ext_intf=eth2 -D ext_gw_ip=172.16.230.1 > onos.yml && rm 2RidmZc


Please review the onos.yml, make sure external_interface and external_gateway_ip have valid value.

Code Block
languagebash
themeMidnight
data:
  ...
  sona_network_config: |-
    # Configuration options for ONOS CNI plugin endpoint
    [network]
    # Overlay network type (VXLAN, GRE, GENEVE).
    type = VXLAN
    # Segment identifier of the network.
    segment_id = 100
    # External uplink interface name.
    external_interface = eth2
    # External gateway IP address.
    external_gateway_ip = 172.16.230.1
    # Transient network CIDR.
    transient_cidr = 172.10.0.0/16
    # Service network CIDR.
    service_cidr = 10.96.0.0/12
    # Network Maximum Transmission Unit (MTU).
    mtu = 1400

...