《Cisco VPP SFC》3、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每秒,如果下载失败重新执行第四步命令。经过两个小时的时间。。。终于安装完成 - - !!!
安装honeycomb

5、启动honeycomb:

sh ./infra/minimal-distribution/target/minimal-distribution-1.18.01.3-SNAPSHOT-hc/minimal-distribution-1.18.01.3-SNAPSHOT/honeycomb

启动honeycomb
启动honeycomb

参考链接:
https://wiki.fd.io/view/Honeycomb
https://wiki.fd.io/view/Honeycomb/Releases/1609/Setting_Up_Your_Dev_Environment

猜你喜欢

转载自blog.csdn.net/u010827484/article/details/81031891
今日推荐