1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/tests/data/json_members_list/ixf.member.invalid.2.json
Matt Griswold b2fe79cdcd Ixf fixes 202011 (#898)
* Fix local var error and add test

* Add error handling that mentions ixlan and update one test

* Add conditional

* test to reproduce #889 and fixes for #889

* Remove member type checking

* check requirement_of_id instead of requirement_of as that can raise an exception if the relationship isn't cached

* ix-f suggestion to modify netixlan to clear an ip field is now stated as "Clear IPvX address" instead of "Set IPvX address"

* handle multiple vlans for prefixes defined on ixlan

* rewording

* fix tests

* black formatted

Co-authored-by: Elliot Frank <elliot@20c.com>
Co-authored-by: Stefan Pratter <stefan@20c.com>
2020-12-03 09:35:33 -06:00

89 lines
3.2 KiB
JSON

{
"timestamp": "2020-07-13T09:23:47Z",
"version": "1.0",
"ixp_list": [
{
"shortname": "Test Exchange",
"ixp_id": 1,
"ixf_id": 1
}
],
"member_list": [
{
"asnum": 1001,
"member_type": "peering",
"name": "Netflix",
"url": "http://netflix.com/",
"contact_email": [
"peering@netflix.com",
"mrpeering@netflix.com"
],
"contact_phone": [
"+1 1234 5678"
],
"contact_hours": "8/5",
"peering_policy": "open",
"peering_policy_url": "https://www.netflix.com/openconnect/",
"member_since": "2009-02-04T00:00:00Z",
"connection_list": [
{
"ixp_id": 42,
"connected_since": "2009-02-04T00:00:00Z",
"state": "connected",
"if_list": [
{
"switch_id": 1,
"if_speed": "This is invalid",
"if_type": "LR4"
}
],
"vlan_list": [
{
"vlan_id": 1,
"ipv4": {
"address": "195.69.147.100",
"routeserver": false,
"max_prefix": 42,
"as_macro": "AS-NFLX-V4",
"mac_address" : [
"00:0a:95:9d:68:16"
]
},
"ipv6": {
"address": "2001:7f8:1::a500:2906:4",
"routeserver": false,
"max_prefix": 42,
"as_macro": "AS-NFLX-V6",
"mac_address" : [
"00:0a:95:9d:68:16"
]
}
},
{
"vlan_id": 1,
"ipv4": {
"address": "195.69.147.200",
"routeserver": false,
"max_prefix": 42,
"as_macro": "AS-NFLX-V4",
"mac_address" : [
"00:0a:95:9d:68:16"
]
},
"ipv6": {
"address": "2001:7f8:1::a500:2906:2",
"routeserver": false,
"max_prefix": 42,
"as_macro": "AS-NFLX-V6",
"mac_address" : [
"00:0a:95:9d:68:16"
]
}
}
]
}
]
}
]
}