Hi Edison,
"ovs-vsctl" commands issue OVSDB messages.
Even if your switches are hardware switches (not on Mininet), if "ovs-vsctl"
command is embedded,
you can use Ryu's OVSDB library, I guess.
To enable to accept OVSDB messages on your switch, please set OVSDB manager
address on your switch.
ovs-vsctl set-manager ptcp:6640
Then, you can access to your switch by using OVSDB at "tcp:<switch_ip>:6640".
ovs = bridge.OVSBridge(
CONF=self.CONF,
datapath_id=datapath_id,
ovsdb_addr="tcp:<switch_ip>:6640")
Thanks,
Iwase
On 2017年09月11日 09:36, Edison Albuquerque wrote:
Hi Iwase.
I wonder if it is possible to issue a command like "ovs-vsctl ..." from inside the controller right
into one of the switches.
I know that I can do it from Mininet, but in a real network all I have is the controller to talk to
the switches.
Thanks for the tips. I'll read them through and try them.
Regards,
2017-09-10 21:14 GMT-03:00 Iwase Yusuke <iwase.yusu...@gmail.com
<mailto:iwase.yusu...@gmail.com>>:
Hi Edison,
Please let me confirm which "SSH" and "the Switch's shell" means.
You want to control the behavior of your switch via SSH command line
interface from Ryu, right?
If so, Ryu does not provide such features for SSH CLIs.
If your switch supports OVSDB, you can use OVSDB library of Ryu.
https://github.com/osrg/ryu/blob/0673a8868e4447e7b2ec551c720aeb929993727d/ryu/lib/ovs/bridge.py#L92
<https://github.com/osrg/ryu/blob/0673a8868e4447e7b2ec551c720aeb929993727d/ryu/lib/ovs/bridge.py#L92>
Or if you means the CLI commands like Linux bash, I guess you need to
implement it by using
Ansible or other provisioning tools.
http://docs.ansible.com/ansible/latest/dev_guide/developing_api.html
<http://docs.ansible.com/ansible/latest/dev_guide/developing_api.html>
Thanks,
Iwase
On 2017年09月10日 20:41, Edison Albuquerque wrote:
Hi.
Once I have a SSH connection between Controller and Switch, how can I
access the Switch's
shell from inside Ryu?
Tks.
--
/_Todos querem um mundo melhor. Poucos colaboram.
_/
Prof. Edison de Queiroz Albuquerque, BSc, Msc, Dr.
Adjunto da Escola Politécnica de Pernambuco, Universidade de Pernambuco
(POLI/UPE)
Professor do Curso de Engenharia de Computação
Líder do Grupo de Pesquisa em Protocolos de Redes de Computadores
Membro do IEEE (ComSoc), do SBrT, do IECOM e da APEET
Universidade de Pernambuco/Escola Politécnica de
<https://maps.google.com/?q=ola+Polit%C3%A9cnica+de&entry=gmail&source=g>Pernambuco
Rua Benfica, 455 (Bl. 'C' 2. andar) - Bairro: Madalena
CEP 50720-001 - Recife, Pernambuco - Brasil
Fone: +55 81 3184-7542 <tel:%2B55%2081%203184-7542>
<tel:+55%2081%203184-7542> - Fax: +55 81
3184-7581 <tel:%2B55%2081%203184-7581> <tel:+55%2081%203184-7581>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net <mailto:Ryu-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
--
/_Todos querem um mundo melhor. Poucos colaboram.
_/
Prof. Edison de Queiroz Albuquerque, BSc, Msc, Dr.
Adjunto da Escola Politécnica de Pernambuco, Universidade de Pernambuco
(POLI/UPE)
Professor do Curso de Engenharia de Computação
Líder do Grupo de Pesquisa em Protocolos de Redes de Computadores
Membro do IEEE (ComSoc), do SBrT, do IECOM e da APEET
Universidade de Pernambuco/Escola Politécnica de Pernambuco
Rua Benfica, 455 (Bl. 'C' 2. andar) - Bairro: Madalena
CEP 50720-001 - Recife, Pernambuco - Brasil
Fone: +55 81 3184-7542 - Fax: +55 81 3184-7581
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel