@@ -142,7 +142,7 @@ class NetconfAgentCallback {
142142 }
143143}; // NetconfAgentCallback
144144
145- } // anonymous namespace
145+ } // anonymous namespace
146146
147147namespace isc {
148148namespace netconf {
@@ -254,15 +254,15 @@ NetconfAgent::initSysrepo() {
254254 startup_sess_ = Connection{}.sessionStart ();
255255 startup_sess_->switchDatastore (Datastore::Startup);
256256 } catch (exception const & ex) {
257- isc_throw (Unexpected, " Can't establish a sysrepo session: "
258- << ex.what ());
257+ isc_throw (Unexpected, " Can't establish a sysrepo session: " << ex.what ());
259258 }
260259
261260 // Retrieve names and revisions of installed modules from sysrepo.
262261 getModules ();
263262}
264263
265- void NetconfAgent::getModules () {
264+ void
265+ NetconfAgent::getModules () {
266266 vector<Module> modules;
267267 try {
268268 Context context (running_sess_->getContext ());
@@ -274,8 +274,7 @@ void NetconfAgent::getModules() {
274274 for (Module const & module : modules) {
275275 string const name (module .name ());
276276 if (!module .revision ()) {
277- isc_throw (Unexpected,
278- " could not retrieve module revision for module " << name);
277+ isc_throw (Unexpected, " could not retrieve module revision for module " << name);
279278 }
280279 string const revision (*module .revision ());
281280 modules_.emplace (name, revision);
@@ -464,8 +463,7 @@ NetconfAgent::subscribeToDataChanges(const CfgServersMapPair& service_pair) {
464463 } catch (exception const & ex) {
465464 ostringstream msg;
466465 msg << " module change subscribe failed with " << ex.what ();
467- msg << " change subscription for model " << model <<
468- " failed with: " << ex.what ();
466+ msg << " change subscription for model " << model << " failed with: " << ex.what ();
469467 LOG_ERROR (netconf_logger, NETCONF_SUBSCRIBE_CONFIG_FAILED)
470468 .arg (server)
471469 .arg (configuration->getModel ())
@@ -754,7 +752,8 @@ NetconfAgent::announceShutdown() const {
754752 }
755753}
756754
757- bool NetconfAgent::shouldShutdown () const {
755+ bool
756+ NetconfAgent::shouldShutdown () const {
758757 return boost::dynamic_pointer_cast<NetconfController>(NetconfController::instance ())
759758 ->getNetconfProcess ()
760759 ->shouldShutdown ();
0 commit comments