def switchport_pvlan_mapping_trunk_delta(should)
      # Enable switchport mode and feature private-vlan
      pvlan_enable

      # Handle single-level arrays if found: [pri, range] -> [[pri,range]]
      should = [should] if !should.empty? && (Utils.depth(should) == 1)

      is = switchport_pvlan_mapping_trunk
      delta_hash = Utils.delta_add_remove(should, is, :updates_not_allowed)
      Cisco::Logger.debug("switchport_pvlan_mapping_trunk_delta: #{delta_hash}")
      [:remove, :add].each do |action|
        delta_hash[action].each do |pri_and_range|
          pri, range = pri_and_range
          if action == :add
            state = ''
          else
            state = 'no'
            range = ''
          end
          cli_error_check(
            config_set('interface', 'switchport_pvlan_mapping_trunk',
                       name: @name, state: state, primary: pri, range: range))
        end
      end
    end
def switchport_pvlan_mapping_trunk_delta(should)
      # Enable switchport mode and feature private-vlan
      pvlan_enable

      # Handle single-level arrays if found: [pri, range] -> [[pri,range]]
      should = [should] if !should.empty? && (Utils.depth(should) == 1)

      is = switchport_pvlan_mapping_trunk
      delta_hash = Utils.delta_add_remove(should, is, :updates_not_allowed)
      Cisco::Logger.debug("switchport_pvlan_mapping_trunk_delta: #{delta_hash}")
      [:remove, :add].each do |action|
        delta_hash[action].each do |pri_and_range|
          pri, range = pri_and_range
          if action == :add
            state = ''
          else
            state = 'no'
            range = ''
          end
          cli_error_check(
            config_set('interface', 'switchport_pvlan_mapping_trunk',
                       name: @name, state: state, primary: pri, range: range))
        end
      end
    end
--------------------------
 switchport_pvlan_mapping_trunk_delta(should)

 Find the is/should delta and add/remove commands as needed.
 The 'should' value is a nested array of primary vlan and secondary
 ranges; e.g.:
   [['44', '144-145'], ['99', '199-201']