[P4-dev] issue about p4-hlir

dida_327 at sina.com dida_327 at sina.com
Thu Dec 29 10:39:13 EST 2016

  I am learning p4-hlir doc.  and try to use it according to the introduction. but it seems doesn't work
log info:dida at ubuntu:~/P4/P4factory/p4factory/targets/simple_router/p4src$ p4-shell simple_router.p4 parsing successfulsemantic checking successfulHeader type standard_metadata_t not byte-aligned, adding paddingHLIR successfully constructed, access with variable 'h'Python 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4] on linux2Type "help", "copyright", "credits" or "license" for more information.(InteractiveConsole)>>> from p4_hlir.main import HLIR>>> h = HLIR(simple_router.p4)Traceback (most recent call last):  File "<console>", line 1, in <module>NameError: name 'simple_router' is not defined
I think i do it following the doc . but maybe the format in "HLIR()" is wrong,  does any one know how to input it correclly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20161229/22836963/attachment-0002.html>

More information about the P4-dev mailing list