Returns the current state, or sub-state, depending on the path.

def get_state_repr(self, path):
        """
        Returns the current state, or sub-state, depending on the path.

        """
        if path == "ips":
            return {
                "failed_ips"       : self.failed_ips,
                "questionable_ips" : self.questionable_ips,
                "working_set"      : self.working_set,
            }

        if path == "route_info":
            return {
                "route_spec"    : self.route_spec,
                "routes"        : self.routes,
                "ignore_routes" : self.ignore_routes
            }

        if path == "plugins":
            return self.get_plugins_info()

        if path == "vpc":
            return self.vpc_state

        if path == "":
            return {
                "SERVER"           : {
                    "version"      : self.versions,
                    "start_time"   : self.starttime.isoformat(),
                    "current_time" : datetime.datetime.now().isoformat()
                },
                "params"     : self.render_main_params(),
                "plugins"    : {"_href" : "/plugins"},
                "ips"        : {"_href" : "/ips"},
                "route_info" : {"_href" : "/route_info"},
                "vpc"        : {"_href" : "/vpc"}
            }