# Building topology in P4 program

**URL:** <https://forum.p4.org/t/building-topology-in-p4-program/877>\
**Category:** Uncategorized\
**Created:** [July 3, 2023, 2:47pm UTC](https://forum.p4.org/t/building-topology-in-p4-program/877 "2023-07-03T14:47:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jianyu](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@Jianyu](https://forum.p4.org/u/Jianyu)\
**Post date:** [July 3, 2023, 2:47pm UTC](https://forum.p4.org/t/building-topology-in-p4-program/877/1 "2023-07-03T14:47:43Z")

</div>

Hello, I’m sorry to bother you so late. I have a question here that involves building a topology. In the p4-utils environment, I set up a topology according to the method mentioned in p4-learning, but I encountered the following problem. May I ask what caused this problem

 ![捕获](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/ef7caf166bea8e525febb2310a762299f1aceb04.png)  
Reading JSON configuration file…  
“l3” assignment strategy selected.  
Traceback (most recent call last):  
File “/usr/local/bin/p4run”, line 11, in   
load\_entry\_point(‘p4utils’, ‘console\_scripts’, ‘p4run’)()  
File “/home/p4/p4-tools/p4-utils/p4utils/p4run.py”, line 739, in main  
verbosity=args.verbosity)  
File “/home/p4/p4-tools/p4-utils/p4utils/p4run.py”, line 341, in **init**  
self.l3()  
File “/home/p4/p4-tools/p4-utils/p4utils/mininetlib/network\_API.py”, line 2650, in l3  
assert not self.is\_multigraph()  
AssertionError

---

<div class="post-metadata">

**Author:** ![andyfingerhut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/andyfingerhut/32/17_2.png) [@andyfingerhut](https://forum.p4.org/u/andyfingerhut)\
**Post date:** [July 3, 2023, 3:15pm UTC](https://forum.p4.org/t/building-topology-in-p4-program/877/2 "2023-07-03T15:15:22Z")

</div>

It seems much more likely that someone might be able to diagnose the problem if you published the contents of any relevant input files, rather than just the error message, e.g. the contents of file clos\_four\_switches\_1.json

One good option for doing so is to put the files into a public repository, e.g. on [Github.com](http://Github.com) (but other sites are fine, too), and put a link to those files in a question on this forum.
