#NEWLINE# def extensive( self ) : #NEWLINE# #INDENT# string = [ ] #NEWLINE# for index in sorted ( self . rules ) : #NEWLINE# #INDENT# rules = self . rules [ index ] #NEWLINE# s = [ ] #NEWLINE# for ( idx , rule ) in enumerate ( rules ) : #NEWLINE# #INDENT# if ( idx and ( not ( rule . operations & NumericOperator . AND ) ) ) : #NEWLINE# #INDENT# s . append ( ' ' ) #NEWLINE# #UNINDENT# s . append ( rule ) #NEWLINE# #UNINDENT# line = '' . join ( ( str ( _ ) for _ in s ) ) #NEWLINE# if ( len ( s ) > 1 ) : #NEWLINE# #INDENT# line = ( '[ %s ]' % line ) #NEWLINE# #UNINDENT# string . append ( ( ' %s %s' % ( rules [ 0 ] . NAME , line ) ) ) #NEWLINE# #UNINDENT# nexthop = ( ( ' next-hop %s' % self . nexthop ) if ( self . nexthop is not NoNextHop ) else '' ) #NEWLINE# rd = ( '' if ( self . rd is RouteDistinguisher . NORD ) else str ( self . rd ) ) #NEWLINE# return ( ( ( 'flow' + '' . join ( string ) ) + rd ) + nexthop )