Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linc:start/stop(switchId). not working... #354

Open
fnkhan opened this issue Feb 24, 2015 · 5 comments
Open

linc:start/stop(switchId). not working... #354

fnkhan opened this issue Feb 24, 2015 · 5 comments

Comments

@fnkhan
Copy link

fnkhan commented Feb 24, 2015

CLI commands linc:start_switch() and stop_switch are not working.
(linc@mininet-vm)1> linc:stop_switch(2).
** exception exit: {noproc,{gen_server,call, [linc_capable_sup,{terminate_child,linc2_sup},infinity]}} in function gen_server:call/3 (gen_server.erl, line 190)

Not working for:

commit fe12e57
Merge: 0d6b7bc d51f609
Author: Szymon Mentel [email protected]
Date: Thu Jan 29 15:19:50 2015 +0100

Merge pull request #352 from FlowForwarding/travis-erl-17.3

Make Travis use Erlang 17.3

Works for:

commit a412b0f
Author: Szymon Mentel [email protected]
Date: Thu Jan 8 13:50:42 2015 +0100

Fix typos in optical_extension.md

@mentels
Copy link
Contributor

mentels commented Mar 2, 2015

@fnkhan I fixed this bug. Could you confirm that it works?

@fnkhan
Copy link
Author

fnkhan commented Mar 3, 2015

Hi Szymon,
Thanks for fix. It works f9 but I’m getting an error message when I’m stoping the switch.

(linc@mininet-vm)3> linc:stop_switch(2).
ok
(linc@mininet-vm)4> 18:52:54.305 [error] gen_server <0.802.0> terminated with reason: no match of right hand value {error,badarg} in linc_us4_oe_port_load_regulator:cancel_periodic_check/1 line 50
18:52:54.305 [error] CRASH REPORT Process <0.802.0> with 0 neighbours exited with reason: no match of right hand value {error,badarg} in linc_us4_oe_port_load_regulator:cancel_periodic_check/1 line 50 in gen_server:terminate/7 line 792
18:52:54.308 [info] [SwitchId=4][PortNo=30] Set port state [link_down]
18:52:54.309 [info] [SwitchId=7][PortNo=40] Set port state [link_down]
18:52:54.309 [info] [SwitchId=5][PortNo=50] Set port state [link_down]
18:52:54.313 [error] Supervisor {<0.720.0>,linc_us4_oe_port_sup} had child linc_us4_oe_port started with linc_us4_oe_port:start_link(2) at undefined exit with reason no match of right hand value {error,badarg} in linc_us4_oe_port_load_regulator:cancel_periodic_check/1 line 50 in context shutdown_error
18:52:54.359 [error] gen_server <0.813.0> terminated with reason: no match of right hand value {error,badarg} in linc_us4_oe_port_load_regulator:cancel_periodic_check/1 line 50
18:52:54.359 [error] CRASH REPORT Process <0.813.0> with 0 neighbours exited with reason: no match of right hand value {error,badarg} in linc_us4_oe_port_load_regulator:cancel_periodic_check/1 line 50 in gen_server:terminate/7 line 804

start_switch works f9.

(linc@mininet-vm)4> linc:start_switch(2).
{ok,<0.16719.0>}
(linc@mininet-vm)5> 18:53:35.258 [info] [SwitchId=4][PortNo=30] Set port state []
18:53:35.258 [info] [SwitchId=2][PortNo=20] Set port state []
18:53:35.258 [info] Created port: {port,1,[{queues_status,disabled},{queues,[{port,30,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,16,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,3,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,1,[{port_rate,{100,mbps}},{port_queues,[]}]}]},{config,{port_configuration,undefined,up,false,false,false}},{features,{features,undefined,'100Mb-FD',true,copper,unsupported}},{port_no,20},{interface,"dummy"},{type,optical}]}
18:53:35.260 [info] Created port: {port,3,[{queues_status,disabled},{queues,[{port,30,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,16,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,3,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,1,[{port_rate,{100,mbps}},{port_queues,[]}]}]},{config,{port_configuration,undefined,up,false,false,false}},{features,{features,undefined,'100Mb-FD',true,copper,unsupported}},{port_no,30},{interface,"dummy"},{type,optical}]}
18:53:35.261 [info] [SwitchId=2][PortNo=30] Set port state []
18:53:35.263 [info] Created port: {port,16,[{queues_status,disabled},{queues,[{port,30,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,16,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,3,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,1,[{port_rate,{100,mbps}},{port_queues,[]}]}]},{config,{port_configuration,undefined,up,false,false,false}},{features,{features,undefined,'100Mb-FD',true,copper,unsupported}},{port_no,50},{interface,"dummy"},{type,optical}]}
18:53:35.263 [info] [SwitchId=5][PortNo=50] Set port state []
18:53:35.264 [info] [SwitchId=7][PortNo=40] Set port state []
18:53:35.265 [info] [SwitchId=2][PortNo=50] Set port state []
18:53:35.556 [warning] Setting down port that already is down
18:53:35.556 [info] [SwitchId=2][PortNo=10] Set port state [live,link_down]
18:53:35.556 [info] Created port: {port,30,[{queues_status,disabled},{queues,[{port,30,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,16,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,3,[{port_rate,{100,mbps}},{port_queues,[]}]},{port,1,[{port_rate,{100,mbps}},{port_queues,[]}]}]},{config,{port_configuration,undefined,up,false,false,false}},{features,{features,undefined,'100Mb-FD',true,copper,unsupported}},{port_no,10},{interface,"tap30"}]}
18:53:35.565 [info] Connected to controller 192.168.56.1:6633/0 using OFP v4

Regards,
Fahad

On Mar 2, 2015, at 4:39 AM, Szymon Mentel [email protected] wrote:

@fnkhan I fixed this bug. Could you confirm that it works?


Reply to this email directly or view it on GitHub.

@mentels
Copy link
Contributor

mentels commented Mar 4, 2015

@fnkhan I managed to reproduce the bug and will work on that soon.

@fnkhan
Copy link
Author

fnkhan commented Mar 4, 2015

Hi Szymon,
How can I get the flow table from LINC CLI?

Also if you inbox me you email it’ll be much easier for me to contact you. My email is [email protected].

Fahad.
On Mar 4, 2015, at 9:15 AM, Szymon Mentel [email protected] wrote:

@fnkhan I managed to reproduce the bug and will work on that soon.


Reply to this email directly or view it on GitHub.

@fnkhan
Copy link
Author

fnkhan commented Mar 5, 2015

Hi i have found linc_us4_oe_flow:get_flow_table
to get the flow tables but is the a way to get flows from all the tables in all the switches.
On Mar 4, 2015, at 11:51 AM, Fahad Naeem Khan [email protected] wrote:

Hi Szymon,
How can I get the flow table from LINC CLI?

Also if you inbox me you email it’ll be much easier for me to contact you. My email is [email protected].

Fahad.
On Mar 4, 2015, at 9:15 AM, Szymon Mentel [email protected] wrote:

@fnkhan I managed to reproduce the bug and will work on that soon.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants