Skip to content

Commit 69918a3

Browse files
committed
add prefix to network settings for dynamic and vip network
1 parent c12f31c commit 69918a3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/bosh-director/lib/bosh/director/deployment_plan/dynamic_network.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def network_settings(reservation, default_properties = Network::REQUIRED_DEFAULT
116116

117117
config = {
118118
"type" => "dynamic",
119-
"cloud_properties" => subnet.cloud_properties
119+
"cloud_properties" => subnet.cloud_properties,
120+
"prefix" => @prefix
120121
}
121122
config["dns"] = subnet.dns if subnet.dns
122123

src/bosh-director/lib/bosh/director/deployment_plan/vip_network.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def network_settings(reservation, default_properties = REQUIRED_DEFAULTS, _avail
5454
'type' => 'vip',
5555
'ip' => to_ipaddr(reservation.ip).base_addr,
5656
'cloud_properties' => @cloud_properties,
57+
'prefix' => @prefix
5758
}
5859
end
5960

0 commit comments

Comments
 (0)