-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from TheAntColony/master
Live tests, added missing features
- Loading branch information
Showing
38 changed files
with
1,915 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
|
||
class BGPConfig: | ||
def __init__(self, data): | ||
self.id = data.get("id") | ||
self.status = data.get("status") | ||
self.deployment_type = data.get("deployment_type") | ||
self.asn = data.get("asn") | ||
self.md5 = data.get("md5") | ||
self.route_object = data.get("route_object") | ||
self.max_prefix = data.get("max_prefix") | ||
self.created_at = data.get("created_at") | ||
self.requested_at = data.get("requested_at") | ||
self.project = data.get("project") | ||
self.sessions = data.get("sessions") | ||
self.ranges = data.get("ranges") | ||
self.href = data.get("href") | ||
|
||
def __str__(self): | ||
return "%s" % self.id | ||
|
||
def __repr__(self): | ||
return "{}: {}".format(self.__class__.__name__, self.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
|
||
class BGPSession: | ||
def __init__(self, data): | ||
self.id = data.get("id") | ||
self.status = data.get("status") | ||
self.learned_routes = data.get("learned_routes") | ||
self.switch_name = data.get("switch_name") | ||
self.default_route = data.get("default_route") | ||
self.created_at = data.get("created_at") | ||
self.updated_at = data.get("updated_at") | ||
self.device = data.get("device") | ||
self.address_family = data.get("address_family") | ||
self.href = data.get("href") | ||
|
||
def __str__(self): | ||
return "%s" % self.id | ||
|
||
def __repr__(self): | ||
return "{}: {}".format(self.__class__.__name__, self.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
|
||
class Batch: | ||
def __init__(self, data): | ||
self.id = data.get("id") | ||
self.error_messages = data.get("error_messages") | ||
self.quantity = data.get("quantity") | ||
self.state = data.get("state") | ||
self.created_at = data.get("created_at") | ||
self.updated_at = data.get("updated_at") | ||
self.devices = data.get("devices") | ||
self.project = data.get("project") | ||
self.state = data.get("state") | ||
self.error_messages = data.get("error_messages") | ||
|
||
def __str__(self): | ||
return "%s" % self.id | ||
|
||
def __repr__(self): | ||
return "{}: {}".format(self.__class__.__name__, self.id) |
Oops, something went wrong.