Sapan Bhatia | 8c95eb4 | 2017-05-02 12:17:52 +0200 | [diff] [blame] | 1 | option app_label = "fabric"; |
Matteo Scandolo | 9cc4f6f | 2017-10-02 18:03:58 -0700 | [diff] [blame] | 2 | option name = "fabric"; |
Sapan Bhatia | 8c95eb4 | 2017-05-02 12:17:52 +0200 | [diff] [blame] | 3 | |
Luca Prete | b601c38 | 2018-04-30 16:10:43 -0700 | [diff] [blame] | 4 | message FabricService(Service) { |
Matteo Scandolo | 9cc4f6f | 2017-10-02 18:03:58 -0700 | [diff] [blame] | 5 | option verbose_name = "Fabric Service"; |
| 6 | |
| 7 | optional bool autoconfig = 1 [default = True, help_text="Autoconfigure the fabric", null=False]; |
Sapan Bhatia | 8c95eb4 | 2017-05-02 12:17:52 +0200 | [diff] [blame] | 8 | } |
Luca Prete | b601c38 | 2018-04-30 16:10:43 -0700 | [diff] [blame] | 9 | |
| 10 | message Switch(XOSBase) { |
| 11 | option verbose_name = "Fabric Switch"; |
| 12 | |
| 13 | required string ofId = 2 [help_text = "The unique OpenFlow ID of the fabric switch", max_length = 19, null = False, db_index = False, blank = False]; |
| 14 | required string name = 2 [help_text = "The unique name of the fabric switch", max_length = 254, null = False, db_index = False, blank = False]; |
| 15 | required string driver = 3 [help_text = "The driver used by the SDN controller", max_length = 254, null = False, db_index = False, blank = False, default = "ofdpa3"]; |
| 16 | required int32 ipv4NodeSid = 4 [help_text = "The MPLS label used by the switch [17 - 1048576]", null = False, db_index = False, blank = False]; |
| 17 | required string ipv4Loopback = 5 [help_text = "Fabric loopback interface", max_length = 17, null = False, db_index = False, blank = False]; |
| 18 | required string routerMac = 6 [help_text = "MAC address of the fabric switch used for all interfaces", max_length = 17, null = False, db_index = False, blank = False]; |
| 19 | required bool isEdgeRouter = 7 [default = True, help_text="Whether the fabric switch is a leaf or a spine", null=False, blank = False]; |
| 20 | } |
| 21 | |
| 22 | message SwitchPort(XOSBase) { |
| 23 | option verbose_name = "Fabric Switch Port"; |
| 24 | |
| 25 | required manytoone switch->Switch:ports = 1 [help_text = "The fabric switch the port belongs to", db_index = True, null = False, blank = False, tosca_key=True]; |
| 26 | required int32 portId = 2 [help_text = "The unique port OpenFlow port ID", null = False, db_index = False, blank = False, tosca_key=True]; |
| 27 | } |
| 28 | |
| 29 | message PortInterface(XOSBase) { |
| 30 | option verbose_name = "Fabric Port Interface"; |
| 31 | |
| 32 | required manytoone port->SwitchPort:interfaces = 1 [help_text = "The fabric switch port the interface belongs to", db_index = True, null = False, blank = False]; |
| 33 | required string name = 2 [help_text = "The unique name of the fabric switch port", max_length = 254, null = False, db_index = False, blank = False]; |
| 34 | required string ips = 3 [help_text = "The interface IP address (xxx.yyy.www.zzz/nm)", max_length = 20, null = False, db_index = False, blank = False]; |
| 35 | optional int32 vlanUntagged = 4 [help_text = "The optional untagged VLAN ID for the interface", max_length = 20, null = True, db_index = False, blank = True]; |
| 36 | } |