class AccessControlListLayerNine < ActiveRecord::Base
	belongs_to :acl_group
	SRC_INTERFACE_TYPES_ARR = ["All", "Wired", "Wireless(Bridge)", "Wireless(Router)", "Mobile Broadband"]
  # before_save :check_and_update_uplinks_type_value
  attr_reader :current_application_value

        after_create do |acl|
          p ":::::::::creating accl"
        end

        after_update do |acl|
          p "afffffffffffff updaing acck"
        end

    def check_and_update_uplinks_type_value
      self.src_uplink_type = "All" if self.dst_uplink_type_changed?
      self.dst_uplink_type = "All" if self.src_uplink_type_changed?
    end

    def self.update_redis

    end

    def current_application_value
      self.application_value
    end
end
