def __init__(self, on=None, device=None, stats_server=None, gateway=None):
        """Passing params will create a router device.

        :param str|unicode on: Socket file.

        :param str|unicode device: Device name.

        :param str|unicode stats_server: Router stats server address to run at.

        :param str|unicode gateway: Gateway address.

        """
        super(RouterTunTap, self).__init__()

        if on is not None:
            value = [device or 'uwsgidev', on]

            if stats_server:
                value.append(stats_server)

                if gateway:
                    value.append(gateway)

            self._set_aliased('router', ' '.join(value), multi=True)
def __init__ ( self , on = None , device = None , stats_server = None , gateway = None ) : super ( RouterTunTap , self ) . __init__ ( ) if on is not None : value = [ device or 'uwsgidev' , on ] if stats_server : value . append ( stats_server ) if gateway : value . append ( gateway ) self . _set_aliased ( 'router' , ' ' . join ( value ) , multi = True )
Passing params will create a router device.

        :param str|unicode on: Socket file.

        :param str|unicode device: Device name.

        :param str|unicode stats_server: Router stats server address to run at.

        :param str|unicode gateway: Gateway address.