Skip to content
Snippets Groups Projects
Commit e260bd08 authored by Amin Ben Romdhane's avatar Amin Ben Romdhane
Browse files

Define internal variables inside micro-service

parent 999cd4ca
No related branches found
No related tags found
1 merge request!4Define internal variables inside micro-service
Pipeline #156178 passed
......@@ -385,6 +385,8 @@ static int get_NATPortTrigger_Protocol(char *refparam, struct dmctx *ctx, void *
static int set_NATPortTrigger_Protocol(char *refparam, struct dmctx *ctx, void *data, char *instance, char *value, int action)
{
char *NATProtocol[] = {"TCP", "UDP", NULL};
switch (action) {
case VALUECHECK:
if (bbfdm_validate_string(ctx, value, -1, -1, NATProtocol, NULL))
......@@ -467,6 +469,8 @@ static int get_NATPortTriggerRule_Protocol(char *refparam, struct dmctx *ctx, vo
static int set_NATPortTriggerRule_Protocol(char *refparam, struct dmctx *ctx, void *data, char *instance, char *value, int action)
{
char *NATProtocol[] = {"TCP", "UDP", NULL};
switch (action) {
case VALUECHECK:
if (bbfdm_validate_string(ctx, value, -1, -1, NATProtocol, NULL))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment