Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
422
Issues
422
List
Boards
Labels
Service Desk
Milestones
Merge Requests
68
Merge Requests
68
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
Kea
Commits
dea8b62b
Commit
dea8b62b
authored
Oct 24, 2018
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[153-netconf-agent] Make netconf more robust
parent
14a9deda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
src/bin/netconf/netconf.cc
src/bin/netconf/netconf.cc
+1
-1
src/bin/netconf/netconf_process.cc
src/bin/netconf/netconf_process.cc
+10
-2
No files found.
src/bin/netconf/netconf.cc
View file @
dea8b62b
...
...
@@ -106,7 +106,7 @@ NetconfAgent::~NetconfAgent() {
void
NetconfAgent
::
init
(
NetconfCfgMgrPtr
cfg_mgr
)
{
if
(
NetconfProcess
::
global_shut_down_flag
)
{
if
(
NetconfProcess
::
global_shut_down_flag
||
!
cfg_mgr
)
{
return
;
}
const
CfgServersMapPtr
&
servers
=
...
...
src/bin/netconf/netconf_process.cc
View file @
dea8b62b
...
...
@@ -47,10 +47,18 @@ NetconfProcess::run() {
try
{
// Initialize sysrepo.
agent_
.
initSysrepo
();
if
(
!
shouldShutdown
())
{
agent_
.
initSysrepo
();
}
// Initialize netconf agent in a thread.
Thread
th
([
this
]()
{
agent_
.
init
(
getNetconfCfgMgr
());
});
NetconfCfgMgrPtr
cfg_mgr
;
if
(
!
shouldShutdown
())
{
cfg_mgr
=
getNetconfCfgMgr
();
}
// Initialize the agent in a thread.
Thread
th
([
cfg_mgr
]()
{
agent_
.
init
(
cfg_mgr
);
});
// Let's process incoming data or expiring timers in a loop until
// shutdown condition is detected.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment