@classmethod
def instance(cls):
    """
        Singleton to return only one instance of PortManager.

        :returns: instance of PortManager
        """
    if not hasattr(cls, '_instance') or cls._instance is None:
        cls._instance = cls()
    return cls._instance
