code: def edit_dedicated_fwl_rules(self, firewall_id, rules):
          
  
          mask = ('mask[networkVlan[firewallInterfaces'
                  '[firewallContextAccessControlLists]]]')
          svc = self.client['Network_Vlan_Firewall']
          fwl = svc.getObject(id=firewall_id, mask=mask)
          network_vlan = fwl['networkVlan']
  
          for fwl1 in network_vlan['firewallInterfaces']:
              if fwl1['name'] == 'inside':
                  continue
  
              for control_list in fwl1['firewallContextAccessControlLists']:
                  if control_list['direction'] == 'out':
                      continue
                  fwl_ctx_acl_id = control_list['id']
  
          template = {'firewallContextAccessControlListId': fwl_ctx_acl_id,
                      'rules': rules}
  
          svc = self.client['Network_Firewall_Update_Request']
          return svc.createObject(template)
docs: Edit the rules for dedicated firewall.
  
          :param integer firewall_id: the instance ID of the dedicated firewall
          :param list rules: the rules to be pushed on the firewall as defined by
                             SoftLayer_Network_Firewall_Update_Request_Rule