

def show_vlan_page(self, vlans):
    lines_per_pages = 18
    self.write_line('')
    self.write_line('VLAN       Name                         Ports          Type      Authorization')
    self.write_line('-----  ---------------                  -------------  -----     -------------')
    line_count = 0
    while ((len(vlans) > 0) and (line_count < lines_per_pages)):
        vlan = vlans.pop(0)
        ports_strings = self._build_port_strings(self.get_ports_for_vlan(vlan))
        self.write_line('{number: <5}  {name: <32} {ports: <13}  {type: <8}  {auth: <13}'.format(number=vlan.number, name=vlan_name(vlan), ports=ports_strings[0], type=('Default' if (vlan.number == 1) else 'Static'), auth='Required'))
        line_count += 1
        for port_string in ports_strings[1:]:
            self.write_line('{number: <5}  {name: <32} {ports: <13}  {type: <8}  {auth: <13}'.format(number='', name='', ports=port_string, type='', auth=''))
            line_count += 1
    self.write_line('')
    if (len(vlans) > 0):
        self.write('--More-- or (q)uit')
        self.on_keystroke(self.continue_vlan_pages, vlans)

dataset/ETHPy150Open internap/fake-switches/fake_switches/dell/command_processor/enabled.py DellEnabledCommandProcessor.show_vlan_page/original