Skip to content
Snippets Groups Projects
Commit 0c87fd2f authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #2669: Don't redirect stations in R00R01. Cleanup of list of fake stations.

parent 9910af66
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ def buildParset( parset = None, args = "", olapparset = "OLAP.parset", partition ...@@ -43,7 +43,7 @@ def buildParset( parset = None, args = "", olapparset = "OLAP.parset", partition
assert "run" not in defaultObsParams assert "run" not in defaultObsParams
# always assume the stations will be sending to the rack we will be using # always assume the stations will be sending to the rack we will be using
if partition: if partition and partition != "R00R01":
overrideRack( Stations, int(partition[2]) ) overrideRack( Stations, int(partition[2]) )
# ========== Observations # ========== Observations
......
...@@ -20,7 +20,8 @@ def overrideRack( stations, rack ): ...@@ -20,7 +20,8 @@ def overrideRack( stations, rack ):
for s in stations: for s in stations:
for t in stations[s]: for t in stations[s]:
octets = t.ionode.split(".") octets = t.ionode.split(".")
t.ionode = "%s.%s.%s.%s" % (octets[0],octets[1],rack,octets[3]) if octets[0] == "10" and octets[1] == "170": # only process stations connected to BG/P
t.ionode = "%s.%s.%s.%s" % (octets[0],octets[1],rack,octets[3])
def packetAnalysis( name, ip, port ): def packetAnalysis( name, ip, port ):
location = os.popen("which packetanalysis").read().strip() location = os.popen("which packetanalysis").read().strip()
...@@ -278,9 +279,6 @@ def defineStations( s ): ...@@ -278,9 +279,6 @@ def defineStations( s ):
# Special stations, one-time stations, etc. # Special stations, one-time stations, etc.
s.update( { s.update( {
"Pulsar": [Station('Pulsar', '10.170.0.30', ['0.0.0.0:4346'])],
"twoears": [Station('CS302HBA0', '10.170.0.133', ['0.0.0.0:4346']),
Station('CS302HBA1', '10.170.0.134', ['0.0.0.0:4347'])],
} ) } )
# Standard configurations # Standard configurations
...@@ -337,7 +335,8 @@ if __name__ == "__main__": ...@@ -337,7 +335,8 @@ if __name__ == "__main__":
parser.print_help() parser.print_help()
sys.exit(0) sys.exit(0)
overrideRack( Stations, int(options.partition[2]) ) if options.partition != "R00R01":
overrideRack( Stations, int(options.partition[2]) )
for stationName in args: for stationName in args:
# print the inputs of a single station # print the inputs of a single station
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment