Fix issue when oam addr is change from ipv6 to ipv4
The standby controller cannot be unlocked after changing oam address from ipv6 to ipv4. The prefix of the address is not updated when the OAM IP is changed from ipv6 to ipv4. This fix is to update the family and prefix of the address when OAM IP is changed. Change-Id: I14e3cfa1d1fefde510336effdaf9a511de9cae9d Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
This commit is contained in:
parent
63c8e73baa
commit
ddb407fccb
@ -117,7 +117,9 @@ class OAMNetwork(base.SysinvObject):
|
||||
for field, name in self.address_names.iteritems():
|
||||
address = addresses.get(name)
|
||||
if address:
|
||||
values = {'address': self[field]}
|
||||
values = {'address': self[field],
|
||||
'family': subnet.version,
|
||||
'prefix': subnet.prefixlen}
|
||||
self.dbapi.address_update(address.uuid, values)
|
||||
|
||||
self.obj_reset_changes()
|
||||
|
Loading…
x
Reference in New Issue
Block a user