Table of Contents
make && _rel/executive/bin/executive
Run deps/erl_sshd/make_keys
. This will create:
- create a system key as `priv/erl_sshd/ssh_host_rsa_key',
- create a public and private user key in the top directory
- add the created public user key to the
priv/erl_sshd/authorized_keys
.
Adjust listen port and user/passwords in the config/sys.config file:
{erl_sshd, [
{app, executive},
{port, 11122},
{passwords, [{"alice","secret"}]}
]}
Remember to re-generate release after changing/creating the keys/sys.config.
Detailed information can be find in the erl_sshd
README.
To access running Executive
node via keys run in the top directory:
ssh HOSTNAME -p 111222 -i id_rsa
ssh alice@HOSTNAME -p 11122
Ports =
[{"PP1", #{mac_address => "00:00:00:00:01:AA", interface => "eth0"}},
{"PP2", #{mac_address => "00:00:00:00:01:AB", interface => "eth1"}}].
executive:publish_physical_host("ClusterPatchP", "PH1", Ports).
It will be attached to the previously pbulished Physical Host PH1
.
VirtualPorts =
[{"VP1", #{mac_address => "00:00:00:00:01:AA", interface => "eth0"}},
{"VP2", #{mac_address => "00:00:00:00:01:AB", interface => "eth1"}}].
VifPorts =
[{"VP1.1", #{vp_to_bound => "VP1", interface => "vif1.1"}},
{"VP1.2", #{vp_to_bound => "VP2", interface => "vif1.2"}}].
executive:publish_virtual_host("PH1", "PH1/VH1", VirtualPorts, VifPorts).
It will be attached to previously published Virtual Host VH1
.
Ports =
[{"OFP1", #{vp_to_bound => "VP1"}},
{"OFP2", #{vp_to_bound => "VP2"}}].
executive:publish_of_switch("PH1/VH1", "PH1/VH1/OFS1", Ports).
It will be attach to the previously published Virtual Host VH1
assuming
that the OpenFlow Switch OFS1
was not published.
executive:publish_endpoint("PH1/VH1", "EP1", "VP1").
The hosts will be connected via PP1
Physcial Ports on each host.
Ports =
[{"PP1", #{mac_address => "00:00:00:00:01:AA", interface => "eth0"}},
{"PP2", #{mac_address => "00:00:00:00:01:AB", interface => "eth1"}}].
executive:publish_physical_host("ClusterPatchP", "PH2", Ports).
executive:bound_physical_hosts("PH1", "PP1", "PH2", "PP1").