Ticket #9322 (closed: fixed)
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: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: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