Unify serialization to redis and implement VLAN/AS serialization (#2610)

This commit is contained in:
Emanuele Faranda 2019-05-27 08:11:20 +00:00 committed by GitHub
parent a6037e96c3
commit c09199690f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 245 additions and 201 deletions

View file

@ -33,11 +33,15 @@ AutonomousSystem::AutonomousSystem(NetworkInterface *_iface, IpAddress *ipa) : G
#ifdef AS_DEBUG
ntop->getTrace()->traceEvent(TRACE_NORMAL, "Created Autonomous System %u", asn);
#endif
deserializeFromRedis();
}
/* *************************************** */
AutonomousSystem::~AutonomousSystem() {
serializeToRedis();
if(asname) free(asname);
/* TODO: decide if it is useful to dump AS stats to redis */
#ifdef AS_DEBUG