Skip to content

error:Invalid JSON file: build/ #506

@RogueCHU

Description

@RogueCHU

i'm a beginner in P4. I tried to build a new custom mininet topology and then type 'make run', but something wrong happened. And i found that the file "build/" was empty. Could you please help me?

my custom topology is as follows:

{"switches": {"s1": {}},
 "hosts": { "h1": {"ip": "10.0.1.1/24", "mac": "08:00:00:00:01:11", "commands": ["route add default gw 10.0.1.10 dev eth0", "arp -i eth0 -s 10.0.1.10 08:00:00:00:01:00"]},
            "h2": {"ip": "10.0.2.2/24", "mac": "08:00:00:00:02:00", "commands": ["route add default gw 10.0.2.20 dev eth0", "arp -i eth0 -s 10.0.2.20 08:00:00:00:02:00"]},
            "h3": {"ip": "10.0.2.3/24", "mac": "08:00:00:00:02:01", "commands": ["route add default gw 10.0.2.30 dev eth0", "arp -i eth0 -s 10.0.2.30 08:00:00:00:02:00"]}}, 
 "links": [["h1", "s1-p1"],["s1-p2","h2"],["s1-p3","h3"]]}

the details of errors are as follows:

mkdir -p build pcaps logs
sudo python3 ../../utils/run_exercise.py -t topology.json -j build/ -b simple_switch_grpc
Reading topology file.
Building mininet topology.
Invalid JSON file: build/
make: *** [../../utils/Makefile:35:run] error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions