@Test public void testGetHeader() throws Exception { isisHeader = generator.getHeader(IsisPduType.L1CSNP); assertThat(isisHeader, is(instanceOf(IsisHeader.class))); }
public IsisHeader getHeader(IsisPduType pduType) { IsisHeader isisHeader = new IsisHeader(); isisHeader.setIrpDiscriminator((byte) IsisConstants.IRPDISCRIMINATOR); isisHeader.setPduHeaderLength((byte) IsisUtil.getPduHeaderLength(pduType.value())); isisHeader.setVersion((byte) IsisConstants.ISISVERSION); isisHeader.setIdLength((byte) IsisConstants.SYSTEMIDLENGTH); isisHeader.setIsisPduType(pduType.value()); isisHeader.setVersion2((byte) IsisConstants.ISISVERSION); isisHeader.setReserved((byte) IsisConstants.RESERVED); isisHeader.setMaximumAreaAddresses((byte) IsisConstants.MAXAREAADDRESS); return isisHeader; }
LspGenerator { public IsisHeader getHeader(IsisPduType pduType) { IsisHeader isisHeader = new IsisHeader(); isisHeader.setIrpDiscriminator((byte) IsisConstants.IRPDISCRIMINATOR); isisHeader.setPduHeaderLength((byte) IsisUtil.getPduHeaderLength(pduType.value())); isisHeader.setVersion((byte) IsisConstants.ISISVERSION); isisHeader.setIdLength((byte) IsisConstants.SYSTEMIDLENGTH); isisHeader.setIsisPduType(pduType.value()); isisHeader.setVersion2((byte) IsisConstants.ISISVERSION); isisHeader.setReserved((byte) IsisConstants.RESERVED); isisHeader.setMaximumAreaAddresses((byte) IsisConstants.MAXAREAADDRESS); return isisHeader; } }
LspGenerator { public IsisHeader getHeader(IsisPduType pduType) { IsisHeader isisHeader = new IsisHeader(); isisHeader.setIrpDiscriminator((byte) IsisConstants.IRPDISCRIMINATOR); isisHeader.setPduHeaderLength((byte) IsisUtil.getPduHeaderLength(pduType.value())); isisHeader.setVersion((byte) IsisConstants.ISISVERSION); isisHeader.setIdLength((byte) IsisConstants.SYSTEMIDLENGTH); isisHeader.setIsisPduType(pduType.value()); isisHeader.setVersion2((byte) IsisConstants.ISISVERSION); isisHeader.setReserved((byte) IsisConstants.RESERVED); isisHeader.setMaximumAreaAddresses((byte) IsisConstants.MAXAREAADDRESS); return isisHeader; }  }
LspGenerator { public IsisHeader getHeader(IsisPduType pduType) { IsisHeader isisHeader = new IsisHeader(); isisHeader.setIrpDiscriminator((byte) IsisConstants.IRPDISCRIMINATOR); isisHeader.setPduHeaderLength((byte) IsisUtil.getPduHeaderLength(pduType.value())); isisHeader.setVersion((byte) IsisConstants.ISISVERSION); isisHeader.setIdLength((byte) IsisConstants.SYSTEMIDLENGTH); isisHeader.setIsisPduType(pduType.value()); isisHeader.setVersion2((byte) IsisConstants.ISISVERSION); isisHeader.setReserved((byte) IsisConstants.RESERVED); isisHeader.setMaximumAreaAddresses((byte) IsisConstants.MAXAREAADDRESS); return isisHeader; }  LsPdu getLsp(IsisInterface isisInterface, String lspId, IsisPduType isisPduType,
                        List<Ip4Address> allConfiguredInterfaceIps); IsisHeader getHeader(IsisPduType pduType); }
LspGenerator { public IsisHeader getHeader(IsisPduType pduType) { IsisHeader isisHeader = new IsisHeader(); isisHeader.setIrpDiscriminator((byte) IsisConstants.IRPDISCRIMINATOR); isisHeader.setPduHeaderLength((byte) IsisUtil.getPduHeaderLength(pduType.value())); isisHeader.setVersion((byte) IsisConstants.ISISVERSION); isisHeader.setIdLength((byte) IsisConstants.SYSTEMIDLENGTH); isisHeader.setIsisPduType(pduType.value()); isisHeader.setVersion2((byte) IsisConstants.ISISVERSION); isisHeader.setReserved((byte) IsisConstants.RESERVED); isisHeader.setMaximumAreaAddresses((byte) IsisConstants.MAXAREAADDRESS); return isisHeader; }  LsPdu getLsp(IsisInterface isisInterface, String lspId, IsisPduType isisPduType,
                        List<Ip4Address> allConfiguredInterfaceIps); IsisHeader getHeader(IsisPduType pduType);  }