1 === Service Function Load Balancing User Guide
4 SFC Load-Balancing feature implements load balancing of Service Functions, rather than a one-to-one mapping between Service-Function-Forwarder and Service-Function.
6 ==== Load Balancing Architecture
7 Service Function Groups (SFG) can replace Service Functions (SF) in the Rendered Path model.
8 A Service Path can only be defined using SFGs or SFs, but not a combination of both.
10 Relevant objects in the YANG model are as follows:
12 1. Service-Function-Group-Algorithm:
14 Service-Function-Group-Algorithms {
15 Service-Function-Group-Algorithm {
21 Available types: ALL, SELECT, INDIRECT, FAST_FAILURE
23 2. Service-Function-Group:
25 Service-Function-Groups {
26 Service-Function-Group {
28 String serviceFunctionGroupAlgorithmName
31 Service-Function-Group-Element {
32 String service-function-name
38 3. ServiceFunctionHop: holds a reference to a name of SFG (or SF)
41 This tutorial will explain how to create a simple SFC configuration, with SFG instead of SF. In this example, the SFG will include two existing SF.
44 For general SFC setup and scenarios, please see the SFC wiki page: https://wiki.opendaylight.org/view/Service_Function_Chaining:Main#SFC_101
46 ===== Create an algorithm
47 POST - http://127.0.0.1:8181/restconf/config/service-function-group-algorithm:service-function-group-algorithms
50 "service-function-group-algorithm": [
59 (Header "content-type": application/json)
61 ===== Verify: get all algorithms
62 GET - http://127.0.0.1:8181/restconf/config/service-function-group-algorithm:service-function-group-algorithms
64 In order to delete all algorithms:
65 DELETE - http://127.0.0.1:8181/restconf/config/service-function-group-algorithm:service-function-group-algorithms
68 POST - http://127.0.0.1:8181/restconf/config/service-function-group:service-function-groups
71 "service-function-group": [
73 "rest-uri": "http://localhost:10002",
74 "ip-mgmt-address": "10.3.1.103",
77 "type": "service-function-type:napt44",
78 "sfc-service-function": [
91 ===== Verify: get all SFG's
92 GET - http://127.0.0.1:8181/restconf/config/service-function-group:service-function-groups