Skip to content

Commit

Permalink
Also adding the ability to add public IP addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerturk committed Oct 29, 2014
1 parent 329cede commit 340f50e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions linode/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,13 @@ def linode_ip_addprivate(self, request):
that was added."""
pass

@__api_request(required=['LinodeID'],
returns={u'IPAddressID': 'New IP Address ID'})
def linode_ip_addpublic(self, request):
"""Assigns a Public IP to a Linode. Returns the IPAddressID
that was added."""
pass

@__api_request(required=['LinodeID'], optional=['IPAddressID'],
returns=[{u'ISPUBLIC': '0 or 1',
u'IPADDRESS': '192.168.100.1',
Expand Down

0 comments on commit 340f50e

Please sign in to comment.