dellemc / dellemc.enterprise_sonic / 2.4.0 / module / sonic_port_breakout Configure port breakout settings on physical interfaces | "added in version" 1.0.0 of dellemc.enterprise_sonic" Authors: Niraimadaiselvam M (@niraimadaiselvamm) This plugin has a corresponding action plugin.dellemc.enterprise_sonic.sonic_port_breakout (2.4.0) — module
Install with ansible-galaxy collection install dellemc.enterprise_sonic:==2.4.0
collections: - name: dellemc.enterprise_sonic version: 2.4.0
This module provides configuration management of port breakout parameters on devices running Enterprise SONiC.
# Using deleted # # Before state: # ------------- # # sonic# show interface breakout # ----------------------------------------------- # Port Breakout Mode Status Interfaces # ----------------------------------------------- # 1/1 4x10G Completed Eth1/1/1 # Eth1/1/2 # Eth1/1/3 # Eth1/1/4 # 1/11 1x100G Completed Eth1/11/1 # - name: Delete interface port breakout configuration dellemc.enterprise_sonic.sonic_port_breakout: config: - name: 1/11 mode: 1x100G state: deleted
# After state: # ------------ # # sonic# show interface breakout # ----------------------------------------------- # Port Breakout Mode Status Interfaces # ----------------------------------------------- # 1/1 4x10G Completed Eth1/1/1 # Eth1/1/2 # Eth1/1/3 # Eth1/1/4 # 1/11 Default Completed Eth1/11 # # Using deleted # # Before state: # ------------- # # sonic# show interface breakout # ----------------------------------------------- # Port Breakout Mode Status Interfaces # ----------------------------------------------- # 1/1 4x10G Completed Eth1/1/1 # Eth1/1/2 # Eth1/1/3 # Eth1/1/4 # 1/11 1x100G Completed Eth1/11/1 # - name: Delete all port breakout configurations dellemc.enterprise_sonic.sonic_port_breakout: config: state: deleted
# After state: # ------------ # # sonic# show interface breakout # ----------------------------------------------- # Port Breakout Mode Status Interfaces # ----------------------------------------------- # 1/1 Default Completed Eth1/1 # 1/11 Default Completed Eth1/11 # Using merged # # Before state: # ------------- # # sonic# show interface breakout # ----------------------------------------------- # Port Breakout Mode Status Interfaces # ----------------------------------------------- # 1/1 4x10G Completed Eth1/1/1 # Eth1/1/2 # Eth1/1/3 # Eth1/1/4 # - name: Merge port breakout configurations dellemc.enterprise_sonic.sonic_port_breakout: config: - name: 1/11 mode: 1x100G state: merged
# After state: # ------------ # # sonic# show interface breakout # ----------------------------------------------- # Port Breakout Mode Status Interfaces # ----------------------------------------------- # 1/1 4x10G Completed Eth1/1/1 # Eth1/1/2 # Eth1/1/3 # Eth1/1/4 # 1/11 1x100G Completed Eth1/11/1 # Using replaced # # Before state: # ------------- # # sonic# show interface breakout # ----------------------------------------------- # Port Breakout Mode Status Interfaces # ----------------------------------------------- # 1/49 4x25G Completed Eth1/49/1 # Eth1/49/2 # Eth1/49/3 # Eth1/49/4 # - name: Replace port breakout configurations dellemc.enterprise_sonic.sonic_port_breakout: config: - name: 1/49 mode: 4x10G state: replaced
# After state: # ------------ # # sonic# show interface breakout # ----------------------------------------------- # Port Breakout Mode Status Interfaces # ----------------------------------------------- # 1/49 4x10G Completed Eth1/49/1 # Eth1/49/2 # Eth1/49/3 # Eth1/49/4 # Using overridden # # Before state: # ------------- # # sonic# show interface breakout # ---------------------------------------------- # Port Breakout Mode Status Interfaces # ----------------------------------------------- # 1/49 4x10G Completed Eth1/49/1 # Eth1/49/2 # Eth1/49/3 # Eth1/49/4 # 1/50 2x50G Completed Eth1/50/1 # Eth1/50/2 # 1/51 1x100G Completed Eth1/51/1 # - name: Override port breakout configurations dellemc.enterprise_sonic.sonic_port_breakout: config: - name: 1/52 mode: 4x10G state: overridden
state: choices: - merged - deleted - replaced - overridden default: merged description: - Specifies the operation to be performed on the port breakout configured on the device. - In case of merged, the input mode configuration will be merged with the existing port breakout configuration on the device. - In case of deleted, the existing port breakout mode configuration will be removed from the device. - In case of replaced, on-device port breakout configuration of the specified interfaces is replaced with provided configuration. - In case of overridden, all on-device port breakout configurations are overridden with the provided configuration. type: str config: description: - Specifies the port breakout related configuration. elements: dict suboptions: mode: choices: - 1x10G - 1x25G - 1x40G - 1x50G - 1x100G - 1x200G - 1x400G - 2x10G - 2x25G - 2x40G - 2x50G - 2x100G - 2x200G - 4x10G - 4x25G - 4x50G - 4x100G - 8x10G - 8x25G - 8x50G description: - Specifies the mode of the port breakout. type: str name: description: - Specifies the name of the port breakout. required: true type: str type: list
after: description: The resulting configuration model invocation. returned: when changed sample: "The configuration returned will always be in the same format\n of the parameters\ \ above.\n" type: list before: description: The configuration prior to the model invocation. returned: always sample: "The configuration returned will always be in the same format\n of the parameters\ \ above.\n" type: list commands: description: The set of commands pushed to the remote device. returned: always sample: - command 1 - command 2 - command 3 type: list