Implement create_dhcp_options() #1184

Merged
merged 1 commit into from Jan 8, 2013

Projects

None yet

2 participants

@bobveznat
Contributor

Prior to this commit create_dhcp_options was completely broken. It appeared to be a copy/paste of create_subnet() with a few things changed but in general it did not work.

@bobveznat
Contributor

I tested like this:

In [8]: c.create_dhcp_options(domain_name='test.example.com', domain_name_servers=['AmazonProvidedDNS'], ntp_servers=['4.5.6.7'], netbios_name_servers=['1.2.3.4', '2.4.6.8'], netbios_node_type=2 )
Out[8]: DhcpOptions:dopt-36eb2e5c

In [9]: d = _

In [10]: d.options
Out[10]: 
{u'domain-name': [u'test.example.com'],
 u'domain-name-servers': [u'AmazonProvidedDNS'],
 u'netbios-name-servers': [u'1.2.3.4', u'2.4.6.8'],
 u'netbios-node-type': [u'2'],
 u'ntp-servers': [u'4.5.6.7']}
@garnaat garnaat merged commit 167e6fa into boto:develop Jan 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment