I am still on this issue, can anyone please clarify whether I need to make any changes or right any code as the netcfg is returning error 400 whenever I try to push it to the controller?
the topology is no longer spine-leaf but a linear switch with hosts.
@andyfingerhut
here is the curl command
here is the netcfg
{
"devices": {
"device:SW1": {
"basic": {
"managementAddress": "grpc://mininet:50001?device_id=1",
"driver": "stratum-bmv2",
"pipeconf": "org.onosproject.ngsdn-tutorial",
"locType": "grid",
"gridX": 200,
"gridY": 600,
}
},
"device:SW2": {
"basic": {
"managementAddress": "grpc://mininet:50002?device_id=2",
"driver": "stratum-bmv2",
"pipeconf": "org.onosproject.ngsdn-tutorial",
"locType": "grid",
"gridX": 800,
"gridY": 600,
}
}
},
"ports": {
"device:SW1/2": {
"interfaces": [
{
"name": "SW1-2",
"ips": ["2001:1:1::1a/64"]
}
]
},
"device:SW1/3": {
"interfaces": [
{
"name": "SW1-3",
"ips": ["2001:1:1::1b/64"]
}
]
},
"device:SW1/4": {
"interfaces": [
{
"name": "SW1-4",
"ips": ["2001:1:1::1c/64"]
}
]
},
"device:SW2/2": {
"interfaces": [
{
"name": "SW2-2",
"ips": ["2002:1:1::a/64"]
}
]
},
"device:SW2/3": {
"interfaces": [
{
"name": "SW2-3",
"ips": ["2002:1:1::b/64"]
}
]
},
"device:SW2/4": {
"interfaces": [
{
"name": "SW2-4",
"ips": ["2002:1:1::c/64"]
}
]
}
},
"hosts": {
"00:00:00:00:00:1A/None": {
"basic": {
"name": "h1a",
"locType": "grid",
"gridX": 100,
"gridY": 700
}
},
"00:00:00:00:00:1B/None": {
"basic": {
"name": "h1b",
"locType": "grid",
"gridX": 100,
"gridY": 800
}
},
"00:00:00:00:00:1C/None": {
"basic": {
"name": "h1c",
"locType": "grid",
"gridX": 250,
"gridY": 800
}
},
"00:00:00:00:00:2A/None": {
"basic": {
"name": "h2a",
"locType": "grid",
"gridX": 400,
"gridY": 700
}
},
"00:00:00:00:00:2B/None": {
"basic": {
"name": "h2b",
"locType": "grid",
"gridX": 750,
"gridY": 700
}
},
"00:00:00:00:00:2C/None": {
"basic": {
"name": "h2c",
"locType": "grid",
"gridX": 850,
"gridY": 700
}
}
}
}