Search in sources :

Example 1 with DocsisPolicy

use of org.batfish.datamodel.vendor_family.cisco.DocsisPolicy in project batfish by batfish.

the class CiscoControlPlaneExtractor method enterClb_docsis_policy.

@Override
public void enterClb_docsis_policy(Clb_docsis_policyContext ctx) {
    String name = ctx.policy.getText();
    String rule = ctx.rulenum.getText();
    int line = ctx.getStart().getLine();
    DocsisPolicy policy = _configuration.getCf().getCable().getDocsisPolicies().computeIfAbsent(name, n -> new DocsisPolicy(n, line));
    policy.getRules().add(rule);
    _configuration.referenceStructure(CiscoStructureType.DOCSIS_POLICY_RULE, rule, CiscoStructureUsage.DOCSIS_POLICY_DOCSIS_POLICY_RULE, line);
}
Also used : DocsisPolicy(org.batfish.datamodel.vendor_family.cisco.DocsisPolicy)

Aggregations

DocsisPolicy (org.batfish.datamodel.vendor_family.cisco.DocsisPolicy)1