#NEWLINE# def details( self ) : #NEWLINE# #INDENT# details = [ ( 'Network' , details . network_str ) , ( 'Reserved' , self . is_reserved ) ] #NEWLINE# if self . vlan : #NEWLINE# #INDENT# details . append ( ( 'Vlan' , to_a ( '{0}:{1}' . format ( self . vlan . name , self . vlan . number ) , self . vlan ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# details . append ( ( 'Vlan' , 'None' ) ) #NEWLINE# #UNINDENT# if self . site : #NEWLINE# #INDENT# details . append ( ( 'Site' , to_a ( self . site . full_name , self . site ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# details . append ( ( 'Site' , 'None' ) ) #NEWLINE# #UNINDENT# details . append ( ( 'DHCP Scope Name' , ( self . calc_dhcp_scope_name ( ) or 'No Valid Scope' ) ) ) #NEWLINE# return details