Re: [nox-dev] nox-gui flowtracer problem
Hi, My python version is 2.7.1+. $~/wunyuan/oringinal_nox/destiny/nox/src$ python -V Python 2.7.1+ Thanks! 於 2012/1/5 下午 05:26, Murphy McCauley 提到: Are you using Python 2.5? I am guessing this bug doesn't exist with Python 2.6+... -- Murphy On Jan 4, 2012, at 11:52 PM, wunyuan wrote: Hi, The 0xe4115b1251b4L string is our client internet iterface mac. Our client are HP DL380 G7. Our Openflow are installed in Desktop PC with NetFPGA card. Thanks. 於 2012/1/5 下午 03:33, Kyriakos Zarifis 提到: This seems to be a bug where the component was expecting a hex string, but the L in the end of the long int messes things. Thanks for reporting. What kind of switch are you using? For a temporary fix in your case, try replacing line 95 with: value = int(value[:-1],16) On Wed, Jan 4, 2012 at 11:07 PM, wunyuan wuny...@nchc.narl.org.tw mailto:wuny...@nchc.narl.org.tw wrote: Dear all, I build a testbed as follows: NOX / \ of1of2 / \ a b Firstly, I set a and b to ping each other. Secondly, I input ./nox_core -v -v -i ptcp:9550 routing lavi monitoring trackhost_pktin to run the NOX. and then start nox-gui. Thirdly, I click FlowTracer botton and then double click of1 node on nox-gui to show its flow entries. Finally, I highlight one entry and click Trace! botton. However,I cannot find any flows on nox-gui and I find one error message. this error message is as follows: File ~/nox/src/gui/views/flowtracer.py, line 95, in trace_flow value = int(value,16) ValueError: invalid literal for int() with base 16: '0xe4115b1251b4L' How could I fix it? -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw mailto:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org mailto:nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org mailto:nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] nox-gui flowtracer problem
I'm a bit surprised. Can you try /usr/bin/python -V? What OS / distro are you using? -- Murphy On Jan 5, 2012, at 1:35 AM, wunyuan wrote: Hi, My python version is 2.7.1+. $~/wunyuan/oringinal_nox/destiny/nox/src$ python -V Python 2.7.1+ Thanks! 於 2012/1/5 下午 05:26, Murphy McCauley 提到: Are you using Python 2.5? I am guessing this bug doesn't exist with Python 2.6+... -- Murphy On Jan 4, 2012, at 11:52 PM, wunyuan wrote: Hi, The 0xe4115b1251b4L string is our client internet iterface mac. Our client are HP DL380 G7. Our Openflow are installed in Desktop PC with NetFPGA card. Thanks. 於 2012/1/5 下午 03:33, Kyriakos Zarifis 提到: This seems to be a bug where the component was expecting a hex string, but the L in the end of the long int messes things. Thanks for reporting. What kind of switch are you using? For a temporary fix in your case, try replacing line 95 with: value = int(value[:-1],16) On Wed, Jan 4, 2012 at 11:07 PM, wunyuan wuny...@nchc.narl.org.tw wrote: Dear all, I build a testbed as follows: NOX / \ of1of2 /\ ab Firstly, I set a and b to ping each other. Secondly, I input ./nox_core -v -v -i ptcp:9550 routing lavi monitoring trackhost_pktin to run the NOX. and then start nox-gui. Thirdly, I click FlowTracer botton and then double click of1 node on nox-gui to show its flow entries. Finally, I highlight one entry and click Trace! botton. However,I cannot find any flows on nox-gui and I find one error message. this error message is as follows: File ~/nox/src/gui/views/flowtracer.py, line 95, in trace_flow value = int(value,16) ValueError: invalid literal for int() with base 16: '0xe4115b1251b4L' How could I fix it? -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] nox-gui flowtracer problem
Hi, The answers are as follows: 於 2012/1/5 下午 05:46, Murphy McCauley 提到: I'm a bit surprised. Can you try /usr/bin/python -V? Yes nchc@NCHC:/usr/bin$ ./python -V Python 2.7.1+ What OS / distro are you using? nchc@NCHC:/usr/bin$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.04 Release: 11.04 Codename: natty -- Murphy On Jan 5, 2012, at 1:35 AM, wunyuan wrote: Hi, My python version is 2.7.1+. $~/wunyuan/oringinal_nox/destiny/nox/src$ python -V Python 2.7.1+ Thanks! 於 2012/1/5 下午 05:26, Murphy McCauley 提到: Are you using Python 2.5? I am guessing this bug doesn't exist with Python 2.6+... -- Murphy On Jan 4, 2012, at 11:52 PM, wunyuan wrote: Hi, The 0xe4115b1251b4L string is our client internet iterface mac. Our client are HP DL380 G7. Our Openflow are installed in Desktop PC with NetFPGA card. Thanks. 於 2012/1/5 下午 03:33, Kyriakos Zarifis 提到: This seems to be a bug where the component was expecting a hex string, but the L in the end of the long int messes things. Thanks for reporting. What kind of switch are you using? For a temporary fix in your case, try replacing line 95 with: value = int(value[:-1],16) On Wed, Jan 4, 2012 at 11:07 PM, wunyuan wuny...@nchc.narl.org.tw mailto:wuny...@nchc.narl.org.tw wrote: Dear all, I build a testbed as follows: NOX / \ of1of2 / \ a b Firstly, I set a and b to ping each other. Secondly, I input ./nox_core -v -v -i ptcp:9550 routing lavi monitoring trackhost_pktin to run the NOX. and then start nox-gui. Thirdly, I click FlowTracer botton and then double click of1 node on nox-gui to show its flow entries. Finally, I highlight one entry and click Trace! botton. However,I cannot find any flows on nox-gui and I find one error message. this error message is as follows: File ~/nox/src/gui/views/flowtracer.py, line 95, in trace_flow value = int(value,16) ValueError: invalid literal for int() with base 16: '0xe4115b1251b4L' How could I fix it? -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw mailto:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org mailto:nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org mailto:nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] nox-gui flowtracer problem
Ah, of course, you must be running a 32 bit version. We should fix this (maybe by replacing hex(n) with 0x%x % (n,)). Thanks for humoring me. -- Murphy On Jan 5, 2012, at 2:03 AM, wunyuan wrote: Hi, The answers are as follows: 於 2012/1/5 下午 05:46, Murphy McCauley 提到: I'm a bit surprised. Can you try /usr/bin/python -V? Yes nchc@NCHC:/usr/bin$ ./python -V Python 2.7.1+ What OS / distro are you using? nchc@NCHC:/usr/bin$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 11.04 Release:11.04 Codename: natty -- Murphy On Jan 5, 2012, at 1:35 AM, wunyuan wrote: Hi, My python version is 2.7.1+. $~/wunyuan/oringinal_nox/destiny/nox/src$ python -V Python 2.7.1+ Thanks! 於 2012/1/5 下午 05:26, Murphy McCauley 提到: Are you using Python 2.5? I am guessing this bug doesn't exist with Python 2.6+... -- Murphy On Jan 4, 2012, at 11:52 PM, wunyuan wrote: Hi, The 0xe4115b1251b4L string is our client internet iterface mac. Our client are HP DL380 G7. Our Openflow are installed in Desktop PC with NetFPGA card. Thanks. 於 2012/1/5 下午 03:33, Kyriakos Zarifis 提到: This seems to be a bug where the component was expecting a hex string, but the L in the end of the long int messes things. Thanks for reporting. What kind of switch are you using? For a temporary fix in your case, try replacing line 95 with: value = int(value[:-1],16) On Wed, Jan 4, 2012 at 11:07 PM, wunyuan wuny...@nchc.narl.org.tw wrote: Dear all, I build a testbed as follows: NOX / \ of1of2 /\ ab Firstly, I set a and b to ping each other. Secondly, I input ./nox_core -v -v -i ptcp:9550 routing lavi monitoring trackhost_pktin to run the NOX. and then start nox-gui. Thirdly, I click FlowTracer botton and then double click of1 node on nox-gui to show its flow entries. Finally, I highlight one entry and click Trace! botton. However,I cannot find any flows on nox-gui and I find one error message. this error message is as follows: File ~/nox/src/gui/views/flowtracer.py, line 95, in trace_flow value = int(value,16) ValueError: invalid literal for int() with base 16: '0xe4115b1251b4L' How could I fix it? -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
[nox-dev] NOX API development
Hi, I am using NOX as a controller for my openvswitch 1.2.2 with openflow 1.0 . I have created api for adding flow and deleting flow from controller. I have used lib/core.py api's install_datapath_flow and delete_datapath_flow. But core.py do not have api or command for modifying flow table rules and obtaining switch flow table statistics. If I use openflow.OFPFC_MODIFY flag in send_flow_command, it gives me error-invalid action type Also if I give flag as OFPAT_ENQUEUE it gives me error. I wanted to know Are there any other library files in nox whose functions I can use for developing my api or nox dosent support it ? Regards Amit Tewari NHST DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . ---___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] NOX API development
Responses inline. On Jan 5, 2012, at 5:10 AM, Amit Tewari wrote: If I use openflow.OFPFC_MODIFY flag in send_flow_command, it gives me error-“invalid action type” Something like the following should let you modify flows: from util import set_match from nox.coreapps.pyrt.pycomponent import UINT32_MAX self.ctxt.send_flow_command(dpid, openflow.OFPFC_MODIFY, set_match(attrs), idle_timeout, # timeouts only used if flow hard_timeout, # didn't exist self.make_action_array(actions), UINT32_MAX, # No buffer ID priority) attrs and actions are as described in install_datapath_flow()'s documentation. Also if I give flag as OFPAT_ENQUEUE it gives me error. Where are you trying to put that? It belongs in the actions list. Also, it is one of the newer actions and it won't be available on older versions of NOX. Are you using the destiny branch? I wanted to know Are there any other library files in nox whose functions I can use for developing my api or nox dosent support it ? send_openflow_command() pretty much sends a raw buffer to a datapath, so you can craft pretty much any OpenFlow command you want (often using pyopenflow.py), and send it. The monitoring component uses this technique, so you can look at it as an example. Among other things, it uses it to get flow stats. Hope that helps. Murphy___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] nox-gui flowtracer problem
Dear Murphy, I forgot that our client are 64 bit version.Thanks for your reminding me. 於 2012/1/5 下午 06:11, Murphy McCauley 提到: Ah, of course, you must be running a 32 bit version. We should fix this (maybe by replacing hex(n) with 0x%x % (n,)). Thanks for humoring me. -- Murphy On Jan 5, 2012, at 2:03 AM, wunyuan wrote: Hi, The answers are as follows: 於 2012/1/5 下午 05:46, Murphy McCauley 提到: I'm a bit surprised. Can you try /usr/bin/python -V? Yes nchc@NCHC:/usr/bin$ ./python -V Python 2.7.1+ What OS / distro are you using? nchc@NCHC:/usr/bin$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.04 Release: 11.04 Codename: natty -- Murphy On Jan 5, 2012, at 1:35 AM, wunyuan wrote: Hi, My python version is 2.7.1+. $~/wunyuan/oringinal_nox/destiny/nox/src$ python -V Python 2.7.1+ Thanks! 於 2012/1/5 下午 05:26, Murphy McCauley 提到: Are you using Python 2.5? I am guessing this bug doesn't exist with Python 2.6+... -- Murphy On Jan 4, 2012, at 11:52 PM, wunyuan wrote: Hi, The 0xe4115b1251b4L string is our client internet iterface mac. Our client are HP DL380 G7. Our Openflow are installed in Desktop PC with NetFPGA card. Thanks. 於 2012/1/5 下午 03:33, Kyriakos Zarifis 提到: This seems to be a bug where the component was expecting a hex string, but the L in the end of the long int messes things. Thanks for reporting. What kind of switch are you using? For a temporary fix in your case, try replacing line 95 with: value = int(value[:-1],16) On Wed, Jan 4, 2012 at 11:07 PM, wunyuan wuny...@nchc.narl.org.tw mailto:wuny...@nchc.narl.org.tw wrote: Dear all, I build a testbed as follows: NOX / \ of1of2 / \ a b Firstly, I set a and b to ping each other. Secondly, I input ./nox_core -v -v -i ptcp:9550 routing lavi monitoring trackhost_pktin to run the NOX. and then start nox-gui. Thirdly, I click FlowTracer botton and then double click of1 node on nox-gui to show its flow entries. Finally, I highlight one entry and click Trace! botton. However,I cannot find any flows on nox-gui and I find one error message. this error message is as follows: File ~/nox/src/gui/views/flowtracer.py, line 95, in trace_flow value = int(value,16) ValueError: invalid literal for int() with base 16: '0xe4115b1251b4L' How could I fix it? -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw mailto:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org mailto:nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === ___ nox-dev mailing list nox-dev@noxrepo.org mailto:nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan 744, Taiwan, R.O.C. TEL:06-5050940 ext.751 FAX:06-5050945 E-Mail:wuny...@nchc.narl.org.tw === -- === 系統與網路技術組-黃文源(Wun-Yuan Huang) 財團法人國家實驗研究院 國家高速網路與計算中心南部事業群 National Center for High-Performance Computing South Region Office 台南縣台南科學園區南科三路28號 No.28, Nan-Ke 3rd. Rd., Science-based Industrial Park, Tainan