Comment 3 for bug 1642277

Revision history for this message
Jeba Paulaiyan (jebap) wrote :

Hi sachin,

During network_update, failure was due to setting dhcp_option_list as dictionay in IpamSubnet.
But this used to pass in earlier builds of 3.1

I have self.dhcp_option_list = {'dhcp_option': [{'dhcp_option_value': '0.0.0.0', 'dhcp_option_name': '6'}]}
ipam_sn.set_dhcp_option_list(self.dhcp_option_list) which is getting failed during network_update

So after below fix I am able to resolve the issue and VN is getting created

 diff contrail-test-ci/fixtures/vn_test.py aswin/contrail-test-ci/fixtures/vn_test.py
356c356
< ipam_sn.set_dhcp_option_list(self.dhcp_option_list)
---
> ipam_sn.set_dhcp_option_list(DhcpOptionsListType(params_dict=self.dhcp_option_list))

So can please tell me are there any changes to schema where we need to pass DhcpOptionsListType as parameter instead of dictionary

Thanks,
Aswani Kumar