Skip to content

Commit

Permalink
Merge pull request #1127 from PsyanticY/elasticIpSpecs
Browse files Browse the repository at this point in the history
EC2: Add physical specs for elastic IP resources
  • Loading branch information
AmineChikhaoui committed Apr 10, 2019
2 parents bcb82e4 + 79fd01e commit 3b55fc8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nixops/resources/elastic_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ def show_type(self):
def resource_id(self):
return self.allocation_id

def get_physical_spec(self):
physical = {}
if self.public_ipv4:
physical['address'] = self.public_ipv4
return physical

def prefix_definition(self, attr):
return {('resources', 'elasticIPs'): attr}

def connect(self, region):
if self._client:
return
Expand Down

0 comments on commit 3b55fc8

Please sign in to comment.