alohamora007

network-config

Mar 28th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. resources:
  2. OsNetConfigImpl:
  3. type: OS::Heat::SoftwareConfig
  4. properties:
  5. group: script
  6. config:
  7. str_replace:
  8. template:
  9. get_file: /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh
  10. params:
  11. $network_config:
  12. network_config:
  13. - type: interface
  14. name: em3
  15. use_dhcp: false
  16. addresses:
  17. - ip_netmask:
  18. list_join:
  19. - /
  20. - - get_param: ControlPlaneIp
  21. - get_param: ControlPlaneSubnetCidr
  22. routes:
  23. - ip_netmask: 169.254.169.254/32
  24. next_hop:
  25. get_param: EC2MetadataIp
  26. - type: ovs_bridge
  27. name: bridge_name
  28. dns_servers:
  29. get_param: DnsServers
  30. addresses:
  31. - ip_netmask:
  32. get_param: ExternalIpSubnet
  33. routes:
  34. - default: true
  35. next_hop:
  36. get_param: ExternalInterfaceDefaultRoute
  37. members:
  38. - type: linux_bond
  39. name: bond1
  40. bonding_options:
  41. get_param: BondInterfaceOvsOptions
  42. members:
  43. - type: interface
  44. name: em1
  45. primary: true
  46. - type: interface
  47. name: em2
  48. - type: vlan
  49. device: bond1
  50. vlan_id:
  51. get_param: InternalApiNetworkVlanID
  52. addresses:
  53. - ip_netmask:
  54. get_param: InternalApiIpSubnet
  55. - type: vlan
  56. device: bond1
  57. vlan_id:
  58. get_param: StorageNetworkVlanID
  59. addresses:
  60. - ip_netmask:
  61. get_param: StorageIpSubnet
  62. - type: vlan
  63. device: bond1
  64. vlan_id:
  65. get_param: StorageMgmtNetworkVlanID
  66. addresses:
  67. - ip_netmask:
  68. get_param: StorageMgmtIpSubnet
  69. - type: vlan
  70. device: bond1
  71. vlan_id:
  72. get_param: TenantNetworkVlanID
  73. addresses:
  74. - ip_netmask:
  75. get_param: TenantIpSubnet
Add Comment
Please, Sign In to add comment