Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tosca_definitions_version: tosca_simple_yaml_1_0
- imports:
- - custom_types/oltdevice.yaml
- - custom_types/switch.yaml
- - custom_types/switchport.yaml
- - custom_types/portinterface.yaml
- description: Configures a full R-CORD POD
- topology_template:
- node_templates:
- # Fabric configuration
- spine1:
- type: tosca.nodes.Switch
- properties:
- driver: accton-ofdpa3
- ipv4Loopback: 192.168.10.21
- ipv4NodeSid: 101
- isEdgeRouter: False
- name: spine1
- ofId: of:0000cc37ab7cbe68
- routerMac: cc:37:ab:7c:be:68
- spine2:
- type: tosca.nodes.Switch
- properties:
- driver: accton-ofdpa3
- ipv4Loopback: 192.168.10.22
- ipv4NodeSid: 102
- isEdgeRouter: False
- name: spine2
- ofId: of:0000cc37ab7cbfee
- routerMac: cc:37:ab:7c:bf:ee
- leaf1:
- type: tosca.nodes.Switch
- properties:
- driver: accton-ofdpa3
- ipv4Loopback: 192.168.10.23
- ipv4NodeSid: 103
- isEdgeRouter: True
- name: leaf1
- ofId: of:0000cc37ab7cb9d6
- routerMac: cc:37:ab:7c:b9:d6
- leaf2:
- type: tosca.nodes.Switch
- properties:
- driver: accton-ofdpa3
- ipv4Loopback: 192.168.10.24
- ipv4NodeSid: 104
- isEdgeRouter: True
- name: leaf2
- ofId: of:0000cc37ab7cbada
- routerMac: cc:37:ab:7c:ba:da
- node1port:
- type: tosca.nodes.SwitchPort
- properties:
- portId: 1
- host_learning: True
- requirements:
- - switch:
- node: leaf1
- relationship: tosca.relationships.BelongsToOne
- node2port:
- type: tosca.nodes.SwitchPort
- properties:
- portId: 2
- host_learning: True
- requirements:
- - switch:
- node: leaf1
- relationship: tosca.relationships.BelongsToOne
- node3port:
- type: tosca.nodes.SwitchPort
- properties:
- portId: 3
- host_learning: True
- requirements:
- - switch:
- node: leaf2
- relationship: tosca.relationships.BelongsToOne
- node1iface:
- type: tosca.nodes.PortInterface
- properties:
- ips: 10.42.42.11/24 # The interface IP address (xxx.yyy.www.zzz/nm)
- name: node1iface
- requirements:
- - port:
- node: node1port
- relationship: tosca.relationships.BelongsToOne
- node2iface:
- type: tosca.nodes.PortInterface
- properties:
- ips: 10.42.42.12/24 # The interface IP address (xxx.yyy.www.zzz/nm)
- name: node2iface
- requirements:
- - port:
- node: node2port
- relationship: tosca.relationships.BelongsToOne
- node3iface:
- type: tosca.nodes.PortInterface
- properties:
- ips: 10.42.43.13/24 # The interface IP address (xxx.yyy.www.zzz/nm)
- name: node3iface
- requirements:
- - port:
- node: node3port
- relationship: tosca.relationships.BelongsToOne
Add Comment
Please, Sign In to add comment