code: def _generate_replacement(interface_number, segment_number):
          
          replacements = {}
          for i in range(0, 9):
              replacements["port" + str(i)] = interface_number + i
              replacements["segment" + str(i)] = segment_number + i
          return replacements
docs: This will generate replacement string for
          {port0} => {port9}
          {segment0} => {segment9}