Ticket #9322 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Override Values in Facilities.xml

Reported by: Ross Miller Owned by: Stuart Campbell
Priority: major Milestone: Release 3.2
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Owen Arnold

Description

There are occasions when we need to override certain values stored in Facilities.xml. (Specifically, the livedata server for the CORELLI instrument at SNS has 2 network interfaces, and we plan to have live clients talking to both of them.)

Change History

comment:1 Changed 6 years ago by Owen Arnold

  • Status changed from new to assigned

comment:2 Changed 6 years ago by Stuart Campbell

  • Status changed from assigned to inprogress

Ross, will this work for you.

If you create a new copy of the Facilities.xml file somewhere (say with the name Facilities_CORELLI.xml) with an altered SMS address for CORELLI. Then from python try running:

config.updateFacilities('/path/to/new/file/Facilities_CORELLI.xml')

comment:3 Changed 6 years ago by Stuart Campbell

You should be able to print what it thinks the live address is by typing

print config.getInstrument('CORELLI').instdae()

comment:4 follow-up: ↓ 5 Changed 6 years ago by Ross Miller

That might work. I'm trying it out now.

comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 6 years ago by Stuart Campbell

Replying to Ross Miller:

That might work. I'm trying it out now.

Did it work ?

comment:6 in reply to: ↑ 5 Changed 6 years ago by Ross Miller

Replying to Stuart Campbell:

Did it work ?

Yes, that idea works fine. We can probably close this ticket.

comment:7 Changed 6 years ago by Stuart Campbell

  • Status changed from inprogress to verify
  • Resolution set to fixed

comment:8 Changed 6 years ago by Owen Arnold

  • Status changed from verify to verifying
  • Tester set to Owen Arnold

comment:9 Changed 6 years ago by Owen Arnold

  • Status changed from verifying to closed

Yes, this works. No code changes required.

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10165

Note: See TracTickets for help on using tickets.