Skip to content

Commit

Permalink
Merge pull request #43 from digitalocean/virtual-machines
Browse files Browse the repository at this point in the history
Virtual machines
  • Loading branch information
Zach Moody authored Mar 9, 2018
2 parents db9ce83 + 08518e4 commit 1069258
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pynetbox/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.0
3.2.0
4 changes: 2 additions & 2 deletions pynetbox/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
'''
from pynetbox.lib import Endpoint, Request
from pynetbox import dcim, ipam
from pynetbox import dcim, ipam, virtualization


class App(object):
Expand Down Expand Up @@ -116,4 +116,4 @@ def __init__(self, url, token=None, private_key=None,
self.secrets = App('secrets', api_kwargs=self.api_kwargs)
self.tenancy = App('tenancy', api_kwargs=self.api_kwargs)
self.extras = App('extras', api_kwargs=self.api_kwargs)
self.virtualization = App('virtualization', api_kwargs=self.api_kwargs)
self.virtualization = App(virtualization, api_kwargs=self.api_kwargs)
24 changes: 24 additions & 0 deletions pynetbox/virtualization.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'''
(c) 2017 DigitalOcean
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'''
from pynetbox.lib.response import Record
from pynetbox.ipam import IpAddresses


class VirtualMachines(Record):

primary_ip = IpAddresses
primary_ip4 = IpAddresses
primary_ip6 = IpAddresses

0 comments on commit 1069258

Please sign in to comment.