示例#1
0
def ipv6_acl_run_config():
    st.log('Verifying IPv6 ACL and rule present in running config or not')
    if not acl_obj.verify_acl_table(vars.D1,
                                    acl_table=data.acl_ipv6_table_name):
        st.report_fail('failed_to_create_acl', data.acl_ipv6_table_name)
    if not acl_obj.verify_acl_table_rule(vars.D1,
                                         acl_table=data.acl_ipv6_table_name,
                                         acl_rule=data.acl_rule_v6):
        st.report_fail("failed_to_create_acl_rule")
示例#2
0
def ipv4_acl_run_config():
    st.log("Verfiying IPV4 ACL and rule present in running config or not")
    if not acl_obj.verify_acl_table(vars.D1,
                                    acl_table=data.acl_ipv4_table_name):
        st.report_fail("Failed to create ACL")
    if not acl_obj.verify_acl_table_rule(vars.D1,
                                         acl_table=data.acl_ipv4_table_name,
                                         acl_rule=data.acl_rule):
        st.report_fail("failed_to_create_acl_rule")
示例#3
0
def ipv6_acl_verify():
    st.log(
        'Verifying IPv6 ACL and rule present in running config - FtOpSoQosAclCmFn002'
    )
    if not acl_obj.verify_acl_table(vars.D1,
                                    acl_table=data.acl_ipv6_table_name):
        st.report_fail('failed_to_create_acl', data.acl_ipv6_table_name)
    else:
        st.log("Ipv6 ACl table {} creation successful".format(
            data.acl_ipv6_table_name))
    if not acl_obj.verify_acl_table_rule(vars.D1,
                                         acl_table=data.acl_ipv6_table_name,
                                         acl_rule=data.acl_rule_v6):
        st.report_fail("failed_to_create_acl_rule")
    else:
        st.log("IPv6 ACL table rule {} configuration successful".format(
            data.acl_rule_v6))
示例#4
0
def ipv4_acl_verify():
    st.log(
        "Verfiying IPV4 ACL and rule present in running config - FtOpSoQosAclCmFn001, ft_acl_configvalues_save_reload"
    )
    if not acl_obj.verify_acl_table(vars.D1,
                                    acl_table=data.acl_ipv4_table_name):
        st.report_fail("Failed to create ACL")
    else:
        st.log("IPv4 ACL table {} creation successful".format(
            data.acl_ipv4_table_name))
    if not acl_obj.verify_acl_table_rule(vars.D1,
                                         acl_table=data.acl_ipv4_table_name,
                                         acl_rule=data.acl_rule):
        st.report_fail("failed_to_create_acl_rule")
    else:
        st.log("IPv4 ACL table rule {} configuration successful".format(
            data.acl_rule))