|
new file 100644
|
|
|
[
|
|
|
{
|
|
|
"pk": 1,
|
|
|
"model": "conntrackt.project",
|
|
|
"fields": {
|
|
|
"name": "Test Project 1",
|
|
|
"description": "This is a test project 1."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 2,
|
|
|
"model": "conntrackt.project",
|
|
|
"fields": {
|
|
|
"name": "Test Project 2",
|
|
|
"description": "This is a test project 2."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 1,
|
|
|
"model": "conntrackt.location",
|
|
|
"fields": {
|
|
|
"name": "Test Location 1",
|
|
|
"description": "This is a test location 1."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 2,
|
|
|
"model": "conntrackt.location",
|
|
|
"fields": {
|
|
|
"name": "Test Location 2",
|
|
|
"description": "This is a test location 2."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 1,
|
|
|
"model": "conntrackt.entity",
|
|
|
"fields": {
|
|
|
"project": 1,
|
|
|
"location": 1,
|
|
|
"name": "Test Entity 1",
|
|
|
"description": "This is a test entity 1."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 2,
|
|
|
"model": "conntrackt.entity",
|
|
|
"fields": {
|
|
|
"project": 1,
|
|
|
"location": 1,
|
|
|
"name": "Test Entity 2",
|
|
|
"description": "This is a test entity 2."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 3,
|
|
|
"model": "conntrackt.entity",
|
|
|
"fields": {
|
|
|
"project": 1,
|
|
|
"location": 2,
|
|
|
"name": "Test Entity 3",
|
|
|
"description": "This is a test entity 3."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 4,
|
|
|
"model": "conntrackt.entity",
|
|
|
"fields": {
|
|
|
"project": 1,
|
|
|
"location": 2,
|
|
|
"name": "Test Subnet",
|
|
|
"description": "This is a test subnet."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 5,
|
|
|
"model": "conntrackt.entity",
|
|
|
"fields": {
|
|
|
"project": 2,
|
|
|
"location": 1,
|
|
|
"name": "Other Project Test Entity",
|
|
|
"description": "This is a test entity from different project."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 1,
|
|
|
"model": "conntrackt.interface",
|
|
|
"fields": {
|
|
|
"netmask": "255.255.255.255",
|
|
|
"entity": 1,
|
|
|
"name": "eth0",
|
|
|
"address": "192.168.1.1",
|
|
|
"description": "Main network interface."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 2,
|
|
|
"model": "conntrackt.interface",
|
|
|
"fields": {
|
|
|
"netmask": "255.255.255.255",
|
|
|
"entity": 2,
|
|
|
"name": "eth0",
|
|
|
"address": "192.168.1.2",
|
|
|
"description": "Main network interface."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 3,
|
|
|
"model": "conntrackt.interface",
|
|
|
"fields": {
|
|
|
"netmask": "255.255.255.255",
|
|
|
"entity": 3,
|
|
|
"name": "eth0",
|
|
|
"address": "192.168.1.3",
|
|
|
"description": "Main network interface."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 4,
|
|
|
"model": "conntrackt.interface",
|
|
|
"fields": {
|
|
|
"netmask": "255.255.255.0",
|
|
|
"entity": 4,
|
|
|
"name": "eth0",
|
|
|
"address": "192.168.2.0",
|
|
|
"description": "Main network interface."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 5,
|
|
|
"model": "conntrackt.interface",
|
|
|
"fields": {
|
|
|
"netmask": "255.255.255.255",
|
|
|
"entity": 5,
|
|
|
"name": "eth0",
|
|
|
"address": "192.168.100.1",
|
|
|
"description": "Main network interface."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 1,
|
|
|
"model": "conntrackt.communication",
|
|
|
"fields": {
|
|
|
"source": 2,
|
|
|
"destination": 1,
|
|
|
"protocol": "TCP",
|
|
|
"port": 22,
|
|
|
"description": "SSH."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 2,
|
|
|
"model": "conntrackt.communication",
|
|
|
"fields": {
|
|
|
"source": 2,
|
|
|
"destination": 1,
|
|
|
"protocol": "ICMP",
|
|
|
"port": 8,
|
|
|
"description": "Ping."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 3,
|
|
|
"model": "conntrackt.communication",
|
|
|
"fields": {
|
|
|
"source": 3,
|
|
|
"destination": 1,
|
|
|
"protocol": "TCP",
|
|
|
"port": 3306,
|
|
|
"description": "MySQL."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 4,
|
|
|
"model": "conntrackt.communication",
|
|
|
"fields": {
|
|
|
"source": 1,
|
|
|
"destination": 3,
|
|
|
"protocol": "UDP",
|
|
|
"port": 53,
|
|
|
"description": "DNS."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 5,
|
|
|
"model": "conntrackt.communication",
|
|
|
"fields": {
|
|
|
"source": 4,
|
|
|
"destination": 1,
|
|
|
"protocol": "TCP",
|
|
|
"port": 22,
|
|
|
"description": "SSH."
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"pk": 6,
|
|
|
"model": "conntrackt.communication",
|
|
|
"fields": {
|
|
|
"source": 1,
|
|
|
"destination": 2,
|
|
|
"protocol": "UDP",
|
|
|
"port": 123,
|
|
|
"description": "NTP."
|
|
|
}
|
|
|
}
|
|
|
]
|