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

Configure network overlays from config file during boot #85

Closed
dn0 opened this issue Oct 27, 2017 · 1 comment
Closed

Configure network overlays from config file during boot #85

dn0 opened this issue Oct 27, 2017 · 1 comment

Comments

@dn0
Copy link
Member

dn0 commented Oct 27, 2017

Affects the net-physical script (https://github.com/erigones/esdc-erigonos-overlay)

(Moved from https://github.com/erigones/smartos-live/issues/1)

@dn0 dn0 added this to the 2.7.0 milestone Oct 27, 2017
@dn0
Copy link
Member Author

dn0 commented Oct 31, 2017

Overlay definitions in the config file:

overlay_rule_<rule_name>="<definition>"

Examples:

overlay_rule_myoverlay="-e vxlan -s direct -p vxlan/listen_ip=2.3.4.5 -p direct/dest_ip=1.2.3.4 -p direct/dest_port=4789 -p mtu=1400"

overlay_rule_second1="-e vxlan -p vxlan/listen_ip=0.0.0.0,vxlan/listen_port=4790 -s files -p files/config=/opt/custom/overlays/second1_overlay.json -p mtu=1400"

From these config lines, the /var/run/smartdc/networking/overlay_rules.json will be created by network/physical (or possibly a new SMF networking script) in format:

{
    "overlay_myoverlay": "-e vxlan -s direct -p vxlan/listen_ip=2.3.4.5 -p direct/dest_ip=1.2.3.4 -p direct/dest_port=4789 -p mtu=1400",
    "overlay_second1": "-e vxlan -p vxlan/listen_ip=0.0.0.0,vxlan/listen_port=4790 -s files -p files/config=/opt/custom/overlays/second1_overlay.json -p mtu=1400"
}

After implementing these changes, the VMs with the overlay networks configured will be able to start right after boot.

@dn0 dn0 self-assigned this Oct 31, 2017
dn0 added a commit to erigones/esdc-erigonos-overlay that referenced this issue Nov 9, 2017
dn0 added a commit to erigones/esdc-erigonos-overlay that referenced this issue Nov 15, 2017
YanChii pushed a commit to erigones/esdc-erigonos-overlay that referenced this issue Nov 21, 2017
* Configure network overlays from config file during boot - closes erigones/esdc-factory#85
@YanChii YanChii closed this as completed Nov 21, 2017
dn0 added a commit to erigones/esdc-erigonos-overlay that referenced this issue Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants