Skip to content

Instantly share code, notes, and snippets.

Avatar

Szymon Mentel mentels

  • Kraków, Poland
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mentels on github.
  • I am mentels (https://keybase.io/mentels) on keybase.
  • I have a public key whose fingerprint is 6239 4881 7CFB F67C D4D1 BB2F D063 2019 18A1 9883

To claim this, I am signing this object:

@mentels
mentels / gl_change.md
Created Jan 25, 2016
Changing Group Leader of a process on another Erlang node
View gl_change.md

Prerequisites

There're 2 Erlang nodes 'a@szm-mac' and 'b@szm-mac' connected to each other.

The shell process in registered as 'shell' on the 'b@szm-mac' node:

register(shell, self()).
View PUSH_VLAN-icontrol-config
[
{of_driver,[ {listen_ip, {0,0,0,0}},
{listen_port, 6653},
{listen_opts,[binary, {packet, raw}, {active, false}, {reuseaddr, true}]},
{of_compatible_versions, [4,5]},
{callback_module, ofs_handler_driver},
{enable_ping, false},
{ping_timeout,1000},
{ping_idle,5000},
{multipart_timeout,30000} %% IMPLEMENT
View PUSH_VLAN-linc-config
[{linc,
[{of_config,enabled},
{capable_switch_ports,
[{port,1,[{interface,"tap0"}]},{port,2,[{interface,"tap1"}]}]},
{capable_switch_queues, [
{queue, 1, [{min_rate, 0}, {max_rate, 100}]},
{queue, 2, [{min_rate, 0}, {max_rate, 200}]}
]},
{logical_switches,
[{switch,0,