Skip to content

Commit 9cbf55c

Browse files
committed
Updated service with a shorter name and added usage example
Signed-off-by: Fulvio Risso <[email protected]>
1 parent 493a0fe commit 9cbf55c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/services/pcn-transparent-helloworld/datamodel/transparenthelloworld.yang

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module transparenthelloworld {
22
yang-version 1.1;
3-
namespace "http://polycube.network/transparenthelloworld";
4-
prefix "transparenthelloworld";
3+
namespace "http://polycube.network/trhelloworld";
4+
prefix "trhelloworld";
55

66
import polycube-base { prefix "polycube-base"; }
77
import polycube-transparent-base { prefix "polycube-transparent-base"; }
88

99
organization "Polycube open source project";
10-
description "YANG data model for the Polycube Transparent-Helloworld service";
10+
description "YANG data model for the Polycube Transparent Helloworld service";
1111

12-
polycube-base:service-description "Transparent-Helloworld Service";
12+
polycube-base:service-description "Transparent Helloworld Service";
1313
polycube-base:service-version "1.0";
14-
polycube-base:service-name "transparenthelloworld";
14+
polycube-base:service-name "trhelloworld";
1515
polycube-base:service-min-kernel-version "4.14.0";
1616

1717
uses "polycube-transparent-base:transparent-base-yang-module";
@@ -24,6 +24,7 @@ module transparenthelloworld {
2424
}
2525
default PASS;
2626
description "Action performed on ingress packets";
27+
polycube-base:cli-example "DROP/PASS/SLOWPATH (default: PASS)";
2728
}
2829

2930
leaf egress-action {
@@ -34,5 +35,6 @@ module transparenthelloworld {
3435
}
3536
default PASS;
3637
description "Action performed on egress packets";
38+
polycube-base:cli-example "DROP/PASS/SLOWPATH (default: PASS)";
3739
}
3840
}

src/services/pcn-transparent-helloworld/src/Transparenthelloworld-lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/* Do not edit this file manually */
1414

1515
#include "api/TransparenthelloworldApiImpl.h"
16-
#include "../datamodel/transparent-helloworld.h" // generated from datamodel
16+
#include "../datamodel/transparenthelloworld.h" // generated from datamodel
1717

1818
#define SERVICE_PYANG_GIT ""
1919
#define SERVICE_SWAGGER_CODEGEN_GIT "implement_help_in_framework/be2c60c"

src/services/pcn-transparent-helloworld/src/api/TransparenthelloworldApi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#pragma once
2121

22-
#define POLYCUBE_SERVICE_NAME "transparenthelloworld"
22+
#define POLYCUBE_SERVICE_NAME "trhelloworld"
2323

2424

2525
#include "polycube/services/response.h"

0 commit comments

Comments
 (0)