/// Sets the firewall config record in the registry.
///
/// This method is called by the proposals canister.
Sets the firewall config record in the registry.
This method is called by the proposals canister.
Sets the firewall config record in the registry . This method is called by the proposals canister .
pub fn do_set_firewall_config(&mut self, payload: SetFirewallConfigPayload) {
        println!("{}do_set_firewall_config: firewall_config: {:?}, ipv4_prefixes: {:?}, ipv6_prefixes: {:?}", LOG_PREFIX, payload.firewall_config, payload.ipv4_prefixes, payload.ipv6_prefixes);
        let firewall_config: FirewallConfig = payload.into();
        let mutations = vec![RegistryMutation {
            mutation_type: registry_mutation::Type::Upsert as i32,
            key: make_firewall_config_record_key().into_bytes(),
            value: encode_or_panic(&firewall_config),
        }];
        // Check invariants before applying mutations
        self.maybe_apply_mutation_internal(mutations);
    }
pub fn do_set_firewall_config ( & mut self , payload : SetFirewallConfigPayload ) { println ! ( " " LOG_PREFIX payload firewall_config payload ipv4_prefixes payload ipv6_prefixes ) ; let firewall_config : FirewallConfig = payload . into ( ) ; let mutations = vec ! [ RegistryMutation { mutation_type registry_mutation Type Upsert as i32 key make_firewall_config_record_key ( ) into_bytes ( ) value encode_or_panic ( firewall_config ) } ] ; // Check invariants before applying mutations self . maybe_apply_mutation_internal ( mutations ) ; }
Sets the firewall config record in the registry.
Sets the firewall config record in the registry .
&mut self
payload
SetFirewallConfigPayload