/** * Function called when the activator stops just before the cleanup done by * ComponentActivatorAbstractBase * */ public void destroy() { /* * KEYWD: ITRI_PEREGRINE_SNMP4SDN_Activator_RegisterNode&NodeConnectorOfTypeSNMP * OpenDaylight controller had defined several 'type', such as OF (i.e. OpenFlow) ONEPK etc. * If you'd like to add other custom types, it provides the 'registerIDType()' approach, as shown in the init() above, to manually add new type of Node and NodeConnector To un-register the 'type', you can use 'unRegisterIDType()' as below. * Author: Yi-Ling Hsieh */ Node.NodeIDType.unRegisterIDType("SNMP"); NodeConnector.NodeConnectorIDType.unRegisterIDType("SNMP"); config.close();//md-sal fdb.close();//md-sal acl.close();//md-sal vlan.close();//md-sal switchdb.close();//md-sal topo.close();//md-sal }
/** * Function called when the activator stops just before the cleanup done by * ComponentActivatorAbstractBase * */ @Override public void destroy() { Node.NodeIDType.unRegisterIDType("OVS"); } @Override
/** * Function called when the activator stops just before the cleanup done by * ComponentActivatorAbstractBase * */ @Override public void destroy() { Node.NodeIDType.unRegisterIDType("STUB"); NodeConnector.NodeConnectorIDType.unRegisterIDType("STUB"); }