Cleanup some inline comments in network/config
authorDan Prince <dprince@redhat.com>
Wed, 23 Nov 2016 15:19:40 +0000 (10:19 -0500)
committerDan Prince <dprince@redhat.com>
Wed, 23 Nov 2016 15:35:07 +0000 (10:35 -0500)
This patch cleans up some inline comments that are a bit
non-standardly formatted so that we can more easily parse
these templates in an automated fashion.

Change-Id: Ibf91f3478fd894f9323d8805729ece9c5fab256f

net-config-bond.yaml
net-config-bridge.yaml
net-config-static-bridge-with-external-dhcp.yaml
network/config/bond-with-vlans/controller-v6.yaml
network/config/multiple-nics/compute.yaml
network/config/multiple-nics/controller-v6.yaml
network/config/multiple-nics/controller.yaml
network/config/single-nic-linux-bridge-vlans/controller-v6.yaml
network/config/single-nic-linux-bridge-vlans/controller.yaml
network/config/single-nic-vlans/controller-v6.yaml

index ec881bd..01f8ac1 100644 (file)
@@ -56,14 +56,6 @@ resources:
               type: ovs_bridge
               name: {get_input: bridge_name}
               use_dhcp: true
-              # Can't do this yet: https://bugs.launchpad.net/heat/+bug/1344284
-              #ovs_extra:
-              #  - list_join:
-              #    - ' '
-              #    - - br-set-external-id
-              #      - {get_input: bridge_name}
-              #      - bridge-id
-              #      - {get_input: bridge_name}
               members:
                 -
                   type: ovs_bond
@@ -71,7 +63,6 @@ resources:
                   use_dhcp: true
                   ovs_options: {get_param: BondInterfaceOvsOptions}
                   members:
-                    # os-net-config translates nic1 => em1 (for example)
                     -
                       type: interface
                       name: nic1
index 4f7a19d..318eca8 100644 (file)
@@ -45,14 +45,6 @@ resources:
               type: ovs_bridge
               name: {get_input: bridge_name}
               use_dhcp: true
-              # Can't do this yet: https://bugs.launchpad.net/heat/+bug/1344284
-              #ovs_extra:
-              #  - list_join:
-              #    - ' '
-              #    - - br-set-external-id
-              #      - {get_input: bridge_name}
-              #      - bridge-id
-              #      - {get_input: bridge_name}
               members:
                 -
                   type: interface
index 6dbe598..3ea4e6a 100644 (file)
@@ -68,15 +68,6 @@ resources:
                   primary: true
             -
               type: interface
-              # would like to do the following, but can't b/c of:
-              # https://bugs.launchpad.net/heat/+bug/1344284
-              # name:
-              # list_join:
-              #   - '/'
-              #   - - {get_input: bridge_name}
-              #   - ':0'
-              # So, just hardcode to br-ex:0 for now, br-ex is hardcoded in
-              # controller.yaml anyway.
               name: br-ex:0
               addresses:
                 -
index 1361d96..d45ab33 100644 (file)
@@ -115,7 +115,6 @@ resources:
                 -
                   ip_netmask: 169.254.169.254/32
                   next_hop: {get_param: EC2MetadataIp}
-                # IPv4 Default Route
                 -
                   default: true
                   next_hop: {get_param: ControlPlaneDefaultRoute}
@@ -144,7 +143,6 @@ resources:
                     -
                       ip_netmask: {get_param: ExternalIpSubnet}
                   routes:
-                    # IPv6 Default Route
                     -
                       default: true
                       next_hop: {get_param: ExternalInterfaceDefaultRoute}
index 7751474..2e07d45 100644 (file)
@@ -122,7 +122,6 @@ resources:
                 -
                   ip_netmask: {get_param: InternalApiIpSubnet}
             -
-              # Create a bridge which can also be used for VLAN-mode bridge mapping
               type: ovs_bridge
               name: br-tenant
               use_dhcp: false
@@ -134,7 +133,6 @@ resources:
                   type: interface
                   name: nic5
                   use_dhcp: false
-                  # force the MAC address of the bridge to this interface
                   primary: true
             # Uncomment when including environments/network-management.yaml
             # If setting default route on the Management interface, comment
index da1f95f..bbc89ab 100644 (file)
@@ -132,7 +132,6 @@ resources:
                 -
                   ip_netmask: {get_param: InternalApiIpSubnet}
             -
-              # Create a bridge which can also be used for VLAN-mode bridge mapping
               type: ovs_bridge
               name: br-tenant
               use_dhcp: false
@@ -144,7 +143,6 @@ resources:
                   type: interface
                   name: nic5
                   use_dhcp: false
-                  # force the MAC address of the bridge to this interface
                   primary: true
             -
               type: ovs_bridge
@@ -155,7 +153,6 @@ resources:
                 -
                   ip_netmask: {get_param: ExternalIpSubnet}
               routes:
-                # IPv6 Default Route
                 -
                   default: true
                   next_hop: {get_param: ExternalInterfaceDefaultRoute}
@@ -163,7 +160,6 @@ resources:
                 -
                   type: interface
                   name: nic6
-                  # force the MAC address of the bridge to this interface
                   primary: true
             # Uncomment when including environments/network-management.yaml
             # If setting default route on the Management interface, comment
index 7a1f9e5..a0176b5 100644 (file)
@@ -126,7 +126,6 @@ resources:
                 -
                   ip_netmask: {get_param: InternalApiIpSubnet}
             -
-              # Create a bridge which can also be used for VLAN-mode bridge mapping
               type: ovs_bridge
               name: br-tenant
               use_dhcp: false
@@ -138,7 +137,6 @@ resources:
                   type: interface
                   name: nic5
                   use_dhcp: false
-                  # force the MAC address of the bridge to this interface
                   primary: true
             -
               type: ovs_bridge
@@ -156,7 +154,6 @@ resources:
                 -
                   type: interface
                   name: nic6
-                  # force the MAC address of the bridge to this interface
                   primary: true
             # Uncomment when including environments/network-management.yaml
             # If setting default route on the Management interface, comment
index 8012514..a299d23 100644 (file)
@@ -106,7 +106,6 @@ resources:
                 -
                   ip_netmask: 169.254.169.254/32
                   next_hop: {get_param: EC2MetadataIp}
-                # IPv4 Default Route
                 -
                   default: true
                   next_hop: {get_param: ControlPlaneDefaultRoute}
@@ -114,7 +113,6 @@ resources:
                 -
                   type: interface
                   name: {get_input: interface_name}
-                  # force the MAC address of the bridge to this interface
                   primary: true
             -
               type: vlan
@@ -124,7 +122,6 @@ resources:
                 -
                   ip_netmask: {get_param: ExternalIpSubnet}
               routes:
-                # IPv6 Default Route
                 -
                   default: true
                   next_hop: {get_param: ExternalInterfaceDefaultRoute}
index aef5d4e..bd97ccb 100644 (file)
@@ -104,7 +104,6 @@ resources:
                 -
                   ip_netmask: 169.254.169.254/32
                   next_hop: {get_param: EC2MetadataIp}
-                # IPv4 Default Route
                 -
                   default: true
                   next_hop: {get_param: ControlPlaneDefaultRoute}
@@ -112,7 +111,6 @@ resources:
                 -
                   type: interface
                   name: {get_input: interface_name}
-                  # force the MAC address of the bridge to this interface
                   primary: true
             -
               type: vlan
@@ -122,7 +120,6 @@ resources:
                 -
                   ip_netmask: {get_param: ExternalIpSubnet}
               routes:
-                # IPv6 Default Route
                 -
                   default: true
                   next_hop: {get_param: ExternalInterfaceDefaultRoute}
index ecbf2ef..bf5656e 100644 (file)
@@ -106,7 +106,6 @@ resources:
                 -
                   ip_netmask: 169.254.169.254/32
                   next_hop: {get_param: EC2MetadataIp}
-                # IPv4 Default Route
                 -
                   default: true
                   next_hop: {get_param: ControlPlaneDefaultRoute}
@@ -114,7 +113,6 @@ resources:
                 -
                   type: interface
                   name: nic1
-                  # force the MAC address of the bridge to this interface
                   primary: true
                 -
                   type: vlan
@@ -123,7 +121,6 @@ resources:
                     -
                       ip_netmask: {get_param: ExternalIpSubnet}
                   routes:
-                    # IPv6 Default Route
                     -
                       default: true
                       next_hop: {get_param: ExternalInterfaceDefaultRoute}