As far as I understand, VPP class defined in vpp_papi.py opens json files and iterate over it, extracting messages and makes functions which are dynamicallt added to our object that has been created earlier from VPP class. some functions like "ip_fib_dump" do not need any argument which is logicall. but some functions like "ip_add_del_route" must have some input arguments. Calling this function like this " ip_add_del_route("1.2.3.4", 32, "6.7.8.9") " in which arguments are dest_address, dest_address_length and next_hop_address respectively, gives me Error indicating that this function does not get any input argument. My question is that: How should i send input argument to API(in this example ip_add_del_route)??
On Tue, Nov 28, 2017 at 4:45 PM, Ole Troan <otr...@employees.org> wrote: > Holoo, > > > I want to do the following vpp command with python api: > > ip route add table 1 1.2.3.4/24 10.0.0.2 GigabitEthernet2/0/1 weight 7" > > So, how can i know the name and where to find the definition of the > corresponding api? > > ip_add_del_route in src/vnet/ip/ip.api. > > Best regards, > Ole > >
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev