Adding New API for Packet duplication

18 views
Skip to first unread message

Vashung Muilung

unread,
Feb 10, 2022, 4:52:05 AM2/10/22
to NeST users
Hello,

 I am adding new api for packet duplication using netem duplicate at topology : interface class. And Encounter an error on testing. 

The test-case works fine at    directory( i.e your cloned folder)  but  does not work in /nest/test/   directory. 
It gives an Attribute error.


1. Testcase at  directory.
a. Screenshot of working testcase.
Screenshot from 2022-02-10 11-39-33.png

b. Another working example for packet duplication
Screenshot from 2022-02-10 14-45-43.png


The same code when run on different directory: 
say ./nest/test/
Screenshot from 2022-02-10 15-13-33.png

AttributeError: 'Interface' object has no attribute 'set_packet_duplication'




API: set_packet_duplication()
Screenshot from 2022-02-10 15-07-24.png

Testcase code:
Screenshot from 2022-02-10 15-20-17.png


Screenshot from 2022-02-10 14-47-26.png


Please suggest what could be the problem getting attribute error.

Thannks

Vashung Muilung

Shanthanu Rai

unread,
Feb 10, 2022, 5:01:15 AM2/10/22
to Vashung Muilung, NeST users
Hey Vashung, I suspect you have multiple versions of nest installed (one version installed from source, another version installed from PyPI using pip). 

Can you run "pip install -e ." from nest root directory and retry running program in nest/tests folder? 

--
You received this message because you are subscribed to the Google Groups "NeST users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nest-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nest-users/51644858-e641-4854-a7ca-d77d0cb53f85n%40googlegroups.com.

Vashung Muilung

unread,
Feb 10, 2022, 5:47:44 AM2/10/22
to NeST users
Hello sir,
Thank you for the reply, I did pip install -e . on the root directory.  I have the nitk-nest 0.3 version. 
And found some exceptions. Please check the screenshot. 
Screenshot from 2022-02-10 16-08-46.png

Vashung Muilung

unread,
Feb 10, 2022, 7:11:31 AM2/10/22
to NeST users
Thank you Sir, 

I have solved my issue. I have multiple nest on my machine,  I remove one of older version.
And run my testcase, It worked. 
Screenshot from 2022-02-10 17-08-13.png

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages