From ef9e5360cab44df5cd6be9d40da2aaba7801bf5f Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Sat, 2 Feb 2019 23:10:23 +0800 Subject: Enhance README Change-Id: I582aaa062da8fecdde81304c70d5d44ab64bd70a Signed-off-by: Hongjun Ni --- README.md | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 76 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 57cfbc1..69d907e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,79 @@ -# Sweetcomb Guide +Sweetcomb +======================== -This repository contains a work-in-progress code of the integration of [Sysrepo datastore](https://github.com/sysrepo/sysrepo/) with [VPP](https://fd.io/). +## Introduction + +Sweetcomb is a management agent that runs on the same host as a VPP instance, +and exposes yang models via NETCONF or RESTCONF or gRPC to allow the management of that VPP instance from out-of-box. + +For more information on VPP and its features please visit the +[Sweetcomb website](https://wiki.fd.io/view/Sweetcomb) + + +## Changes + +Details of the changes leading up to this version of Sweetcomb can be found under +@ref release notes. + + +## Directory layout + +| Directory name | Description | +| ---------------------- | ------------------------------------------- | +| build-root | Build output directory | +| @ref src/plugins | Sweetcomb bundled plugins directory | +| @ref src/scvpp | Sweetcomb to VPP communication | + +## Getting started + +Firstly, please follow below steps to install dependencies and build code: + cd $/sweetcomb/ + make install-dep + make install-dep-extra + make install-vpp + make build-scvpp + make build + +Then, please start each daemon one by one: + start vpp (for example on Ubuntu: systemctl start vpp) + sysrepod + sysrepo-plugind + netopeer2-server + netopeer2-cli + +Now you can utilize Sweetcomb. + +## Manual Test +For example, if you want to configure ipv4 address on HW interface TenGigabitEthernet5/0/0, +You can follow below steps to verify if Sweetcomb is working well. + +Firstly, set interface up: + vppctl set interface state TenGigabitEthernet5/0/0 up + +Then, starting netopeer2-cli on any host: + netopeer2-cli +> connect --host --login +> edit-config --target running --config +## Press Enter and then past below XML example into the editor and quit + + + TenGigabitEthernet5/0/0 + eth0 + ianaift:ethernetCsmacd + + true + 1514 +
+ 192.168.50.72 + 24 +
+
+ true +
+
+ +Finally, check the configuration result. + vppctl show interface address +If you configure above successfully, you will get ip address set up on interface TenGigabitEthernet5/0/0. -It consists of two components: -- [srvpp](srvpp/) library that provides convenient API for managing VPP from Sysrepo plugins, -- [plugins](plugins/) for Sysrepo that provide the VPP management functionality. -- cgit 1.2.3-korg