# Reloading Configuration Changes on Backup Non-Active Gateway

**URL:** <https://forum.inductiveautomation.com/t/reloading-configuration-changes-on-backup-non-active-gateway/15156>\
**Category:** Module Development\
**Created:** [August 24, 2017, 7:00pm UTC](https://forum.inductiveautomation.com/t/reloading-configuration-changes-on-backup-non-active-gateway/15156 "2017-08-24T19:00:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [August 24, 2017, 7:00pm UTC](https://forum.inductiveautomation.com/t/reloading-configuration-changes-on-backup-non-active-gateway/15156/1 "2017-08-24T19:00:41Z")

</div>

Hello All,

I have created an SNMP driver module that loads its tag configuration from a CSV file under its respective driver folder. This allows the flexibility to add new SNMP tags to the driver and all I have to do to reload these changes is “edit” the device that implements this driver.

My problem is that when I try to do this on the backup gateway configuration page, I am not allowed to edit the device because that gateway is not the master.

The only way I have found to get this device to reload is to manually re-sync the master gateway to the backup gateway.  
Is there a way to cause the device in question to reload the configuration changes on the backup gateway?

The gateway that the module is installed on is version 7.7.5.

Thanks,

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 24, 2017, 9:26pm UTC](https://forum.inductiveautomation.com/t/reloading-configuration-changes-on-backup-non-active-gateway/15156/2 "2017-08-24T21:26:01Z")

</div>

The easiest way to make this happen would be if you stored the configuration as a field on your settings record - it would automatically get synced to the backup when it was changed on the master.

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [August 25, 2017, 12:12pm UTC](https://forum.inductiveautomation.com/t/reloading-configuration-changes-on-backup-non-active-gateway/15156/3 "2017-08-25T12:12:09Z")

</div>

Kevin,

That would indeed solve my problem; however, since this configuration file is not a set number of rows, I’m not sure how I could appropriately represent that data in a field on the device configuration page.

Is there a way to load a CSV file into the settings record?

Also, if I could put the data on the settings record, when it gets re-synced, would the device on the backup automatically refresh, in other words, does it run the driver constructor again on the backup gateway?

Thanks,  
Brandon

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 25, 2017, 12:59pm UTC](https://forum.inductiveautomation.com/t/reloading-configuration-changes-on-backup-non-active-gateway/15156/4 "2017-08-25T12:59:42Z")

</div>

Hi Brandon. I do exactly as Kevin suggested with the XML configuration for my Ethernet/IP driver. I chose a binary blob column type and I gzip the XML. Updating the driver settings record does indeed reload the driver. In a recent change, I moved that field to a separate persistent settings record to avoid the automatic reload (I wanted to handle the reload with custom code).

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [August 25, 2017, 1:23pm UTC](https://forum.inductiveautomation.com/t/reloading-configuration-changes-on-backup-non-active-gateway/15156/5 "2017-08-25T13:23:06Z")

</div>

Thank you for the information. I will take this into consideration as I continue to maintain and develop this driver.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 25, 2017, 3:26pm UTC](https://forum.inductiveautomation.com/t/reloading-configuration-changes-on-backup-non-active-gateway/15156/6 "2017-08-25T15:26:45Z")

</div>

> [@pturmel](#):
>
> I chose a binary blob column type and I gzip the XML.

This was going to be my suggestion as well.
