How do I get tofino-model to use the physical interface?

21 views
Skip to first unread message

Xiaochou Chen

unread,
Apr 5, 2022, 9:10:13 PM4/5/22
to stratum-dev
Dear All,
 
Thank you very much for your answers to my previous questions.

I have a new question: 
Is it possible to use a physical interface in the tofino-model, such as ens160, etc.? The configurations I've seen so far are all "PortToVeth", like the following:

ports.json
{
    "PortToVeth": [
        {
            "device_port":1,
            "veth1":0,
            "veth2":1
        },
        {
            "device_port":2,
            "veth1":2,
            "veth2":3
        },
        {
            "device_port":129,
            "veth1":4,
            "veth2":5
        },
        {
            "device_port":130,
            "veth1":6,
            "veth2":7
        },
        {
            "device_port":257,
            "veth1":8,
            "veth2":9
        },
        {
            "device_port":258,
            "veth1":10,
            "veth2":11
        },
        {
            "device_port":385,
            "veth1":12,
            "veth2":13
        },
        {
            "device_port":386,
            "veth1":14,
            "veth2":15
        }
    ]
}
Reply all
Reply to author
Forward
0 new messages