天天看點

《Cisco VPP SFC》3、honeycomb 安裝honeycomb介紹honeycomb安裝

原文位址:https://blog.csdn.net/u010827484/article/details/81031891

honeycomb介紹

Honeycomb is a generic NETCONF/RESTCONF java-based management agent and provides a framework for building specialized agents.

It uses many features and utilities from different Opendaylight (ODL) projects (e.g. yangtools, controller, mdsal and netconf). The biggest use case of honeycomb is VPP (fd.io’s Vector packet processor). Honeycomb delivers a management agent to enable integration of VPP with e.g. SDN controllers such as Opendaylight.

For VPP specific distribution of Honeycomb, please refer to hc2vpp project.

honeycomb是基于java的通用的netconf/restconf管理機制,主要為SDN的南向提供接口。vpp就是使用honeycomb與opendaylight銜接上的,讓opendaylight作為SDN控制器控制vpp行為。

Referance fd.io honeycomb

honeycomb安裝

1、下載下傳honeycomb源碼:

git clone https://gerrit.fd.io/r/p/honeycomb.git

2、進入honeycomb目錄,使用git切換分支與vpp同步:

git checkout stable/1801

3、建立~/.m2/settings.xml檔案,并加入如下内容,參考連結:

<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=2 tabstop=2: -->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <profiles>
    <profile>
      <id>fd.io-release</id>
      <repositories>
        <repository>
          <id>fd.io-mirror</id>
          <name>fd.io-mirror</name>
          <url>https://nexus.fd.io/content/groups/public/</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>fd.io-mirror</id>
          <name>fd.io-mirror</name>
          <url>https://nexus.fd.io/content/repositories/public/</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>

    <profile>
      <id>fd.io-snapshots</id>
      <repositories>
        <repository>
          <id>fd.io-snapshot</id>
          <name>fd.io-snapshot</name>
          <url>https://nexus.fd.io/content/repositories/fd.io.snapshot/</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>fd.io-snapshot</id>
          <name>fd.io-snapshot</name>
          <url>https://nexus.fd.io/content/repositories/fd.io.snapshot/</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
    <profile>
      <id>opendaylight-snapshots</id>
      <repositories>
        <repository>
          <id>opendaylight-snapshot</id>
          <name>opendaylight-snapshot</name>
          <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>opendaylight-shapshot</id>
          <name>opendaylight-snapshot</name>
          <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>fd.io-release</activeProfile>
    <activeProfile>fd.io-snapshots</activeProfile>
    <activeProfile>opendaylight-snapshots</activeProfile>
  </activeProfiles>
</settings>
           

4、編譯、安裝honeycomb:

mvn clean install -nsu -DskipTests -Dmaven.javadoc.skip=true

這個過程會下載下傳很多jar插件,一邊下載下傳一邊編譯,平均下載下傳速度隻有幾十KB每秒,如果下載下傳失敗重新執行第四步指令。經過兩個小時的時間。。。終于安裝完成 - - !!!

《Cisco VPP SFC》3、honeycomb 安裝honeycomb介紹honeycomb安裝

5、啟動honeycomb:

sh ./infra/minimal-distribution/target/minimal-distribution--SNAPSHOT-hc/minimal-distribution--SNAPSHOT/honeycomb
           
《Cisco VPP SFC》3、honeycomb 安裝honeycomb介紹honeycomb安裝
《Cisco VPP SFC》3、honeycomb 安裝honeycomb介紹honeycomb安裝

參考連結:

https://wiki.fd.io/view/Honeycomb

https://wiki.fd.io/view/Honeycomb/Releases/1609/Setting_Up_Your_Dev_Environment