def wireless(self, interface=None): # Store the name of the interface in question in a class attribute for # use later. self.interface = interface # Set up variables to hold the ESSID and channel of the wireless # uplink. channel = 0 essid = '' channel, essid, warning = _utils.check_for_configured_interface( self.netconfdb, interface, channel, essid) # The forms in the HTML template do everything here, as well. This # method only accepts input for use later. try: page = self.templatelookup.get_template("/gateways/wireless.html") return page.render( title="Configure wireless uplink.", purpose_of_page="Set wireless uplink parameters.", warning=warning, interface=interface, channel=channel, essid=essid) except: _utils.output_error_data()
def wireless(self, interface=None): logging.debug("Entered NetworkConfiguration.wireless().") # Store the name of the network interface chosen by the user in the # object's attribute set and then generate the name of the client # interface. self.mesh_interface = interface self.client_interface = interface + ':1' # Default settings for /network/wireless.html page. channel = 3 essid = 'Byzantium' # This is a hidden class attribute setting, used for sanity checking # later in the configuration process. self.frequency = frequencies[channel - 1] channel, essid, warning = _utils.check_for_configured_interface( self.netconfdb, interface, channel, essid) # The forms in the HTML template do everything here, as well. This # method only accepts input for use later. try: page = self.templatelookup.get_template("/network/wireless.html") return page.render( title="Configure wireless for Byzantium node.", purpose_of_page="Set wireless network parameters.", warning=warning, interface=self.mesh_interface, channel=channel, essid=essid) except: _utils.output_error_data()
def wireless(self, interface=None): logging.debug("Entered NetworkConfiguration.wireless().") # Store the name of the network interface chosen by the user in the # object's attribute set and then generate the name of the client # interface. self.mesh_interface = interface self.client_interface = interface + ':1' # Default settings for /network/wireless.html page. channel = 3 essid = 'Byzantium' # This is a hidden class attribute setting, used for sanity checking # later in the configuration process. self.frequency = frequencies[channel - 1] channel, essid, warning = _utils.check_for_configured_interface(self.netconfdb, interface, channel, essid) # The forms in the HTML template do everything here, as well. This # method only accepts input for use later. try: page = self.templatelookup.get_template("/network/wireless.html") return page.render(title = "Configure wireless for Byzantium node.", purpose_of_page = "Set wireless network parameters.", warning = warning, interface = self.mesh_interface, channel = channel, essid = essid) except: _utils.output_error_data()
def wireless(self, interface=None): # Store the name of the interface in question in a class attribute for # use later. self.interface = interface # Set up variables to hold the ESSID and channel of the wireless # uplink. channel = 0 essid = '' channel, essid, warning = _utils.check_for_configured_interface(self.netconfdb, interface, channel, essid) # The forms in the HTML template do everything here, as well. This # method only accepts input for use later. try: page = self.templatelookup.get_template("/gateways/wireless.html") return page.render(title = "Configure wireless uplink.", purpose_of_page = "Set wireless uplink parameters.", warning = warning, interface = interface, channel = channel, essid = essid) except: _utils.output_error_data()