def METHOD_NAME(self, prole='p'):
    '''
    @summary: Check from the segment "address" column whether the GPDB configuration is localhost
              Now checks whether "all" segments has "localhost" address
    @param pRole: 'p' for primary, 'm' for mirror
    '''
    if prole == 'p':
        role = True
    else:
        role = False
    n = 0
    for r in self.record:
        if r.content != -1:
            if r.role == role:
                if r.address == "localhost":
                    n = n+1
    return (self.get_countprimarysegments()==n)