Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dslmngr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HAL
dslmngr
Commits
6f6353ce
Commit
6f6353ce
authored
9 months ago
by
Vivek Dutta
Browse files
Options
Downloads
Patches
Plain Diff
Added missing required parameters
parent
2b1ecbd2
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
bbf_plugin/atm.c
+7
-0
7 additions, 0 deletions
bbf_plugin/atm.c
bbf_plugin/ptm.c
+7
-0
7 additions, 0 deletions
bbf_plugin/ptm.c
with
17 additions
and
3 deletions
.gitlab-ci.yml
+
3
−
3
View file @
6f6353ce
...
...
@@ -16,7 +16,7 @@ variables:
run_api_test
:
stage
:
api_test
image
:
dev.iopsys.eu:5050/iopsys/gitlab-ci-pipeline/code-analysis
image
:
dev.iopsys.eu:5050/iopsys/gitlab-ci-pipeline/code-analysis
:1.1
allow_failure
:
false
script
:
-
"
./gitlab-ci/install-dependencies.sh"
...
...
@@ -33,7 +33,7 @@ run_api_test:
run_unit_test
:
stage
:
unit_test
image
:
dev.iopsys.eu:5050/iopsys/gitlab-ci-pipeline/code-analysis
image
:
dev.iopsys.eu:5050/iopsys/gitlab-ci-pipeline/code-analysis
:1.1
allow_failure
:
false
script
:
-
"
./gitlab-ci/install-dependencies.sh"
...
...
@@ -47,7 +47,7 @@ run_unit_test:
run_functional_test
:
stage
:
functional_test
image
:
dev.iopsys.eu:5050/iopsys/gitlab-ci-pipeline/code-analysis
image
:
dev.iopsys.eu:5050/iopsys/gitlab-ci-pipeline/code-analysis
:1.1
allow_failure
:
false
script
:
-
"
./gitlab-ci/install-dependencies.sh"
...
...
This diff is collapsed.
Click to expand it.
bbf_plugin/atm.c
+
7
−
0
View file @
6f6353ce
...
...
@@ -351,6 +351,12 @@ static int set_atm_alias(char *refparam, struct dmctx *ctx, void *data, char *in
return
bbf_set_alias
(
ctx
,
((
struct
dm_data
*
)
data
)
->
config_section
,
"atmlinkalias"
,
instance
,
value
);
}
static
int
get_atm_LinkNumberOfEntries
(
char
*
refparam
,
struct
dmctx
*
ctx
,
void
*
data
,
char
*
instance
,
char
**
value
)
{
int
cnt
=
get_number_of_entries
(
ctx
,
data
,
instance
,
browseAtmLinkInst
);
dmasprintf
(
value
,
"%d"
,
cnt
);
return
0
;
}
/**********************************************************************************************************************************
* OBJ & LEAF DEFINITION
***********************************************************************************************************************************/
...
...
@@ -363,6 +369,7 @@ DMLEAF tATMLinkParams[] = {
{
"Status"
,
&
DMREAD
,
DMT_STRING
,
get_atm_status
,
NULL
,
BBFDM_BOTH
},
{
"LowerLayers"
,
&
DMWRITE
,
DMT_STRING
,
get_atm_lower_layer
,
set_atm_lower_layer
,
BBFDM_BOTH
,
DM_FLAG_REFERENCE
},
{
"LinkType"
,
&
DMWRITE
,
DMT_STRING
,
get_atm_link_type
,
set_atm_link_type
,
BBFDM_BOTH
},
{
"LinkNumberOfEntries"
,
&
DMREAD
,
DMT_UNINT
,
get_atm_LinkNumberOfEntries
,
NULL
,
BBFDM_BOTH
},
{
"DestinationAddress"
,
&
DMWRITE
,
DMT_STRING
,
get_atm_destination_address
,
set_atm_destination_address
,
BBFDM_BOTH
},
{
"Encapsulation"
,
&
DMWRITE
,
DMT_STRING
,
get_atm_encapsulation
,
set_atm_encapsulation
,
BBFDM_BOTH
},
{
0
}
...
...
This diff is collapsed.
Click to expand it.
bbf_plugin/ptm.c
+
7
−
0
View file @
6f6353ce
...
...
@@ -241,6 +241,12 @@ static int get_ptm_stats_pack_sent(char *refparam, struct dmctx *ctx, void *data
return
ubus_ptm_stats
(
value
,
"tx_packets"
,
data
);
}
static
int
get_ptm_LinkNumberOfEntries
(
char
*
refparam
,
struct
dmctx
*
ctx
,
void
*
data
,
char
*
instance
,
char
**
value
)
{
int
cnt
=
get_number_of_entries
(
ctx
,
data
,
instance
,
browsePtmLinkInst
);
dmasprintf
(
value
,
"%d"
,
cnt
);
return
0
;
}
/**********************************************************************************************************************************
* OBJ & LEAF DEFINITION
***********************************************************************************************************************************/
...
...
@@ -262,6 +268,7 @@ DMLEAF tPTMLinkParams[] = {
{
"Alias"
,
&
DMWRITE
,
DMT_STRING
,
get_ptm_alias
,
set_ptm_alias
,
BBFDM_BOTH
,
DM_FLAG_UNIQUE
},
{
"Name"
,
&
DMREAD
,
DMT_STRING
,
get_ptm_link_name
,
NULL
,
BBFDM_BOTH
,
DM_FLAG_UNIQUE
|
DM_FLAG_LINKER
},
{
"LowerLayers"
,
&
DMWRITE
,
DMT_STRING
,
get_ptm_lower_layer
,
set_ptm_lower_layer
,
BBFDM_BOTH
,
DM_FLAG_REFERENCE
},
{
"LinkNumberOfEntries"
,
&
DMREAD
,
DMT_UNINT
,
get_ptm_LinkNumberOfEntries
,
NULL
,
BBFDM_BOTH
},
{
0
}
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment