_c.setDefaultInboundAction(LineAction.PERMIT); _c.setDnsServers(getDnsServers()); _c.setNtpServers(getNtpServers());
@Test public void fillPropertyListNonEmpty() { Configuration configuration = new Configuration("hostname", ConfigurationFormat.CISCO_IOS); configuration.setNtpServers(ImmutableSortedSet.of("sa", "sb")); String property = NodePropertySpecifier.NTP_SERVERS; PropertyDescriptor<Configuration> propertyDescriptor = NodePropertySpecifier.JAVA_MAP.get(property); RowBuilder row = Row.builder(); PropertySpecifier.fillProperty(propertyDescriptor, configuration, property, row); // the row should be filled out with the right list and the schemas map should be List<String> assertThat( row.build(), equalTo(Row.builder().put(property, ImmutableList.of("sa", "sb")).build())); }
_c.setDomainName(_masterLogicalSystem.getDefaultRoutingInstance().getDomainName()); _c.setLoggingServers(_masterLogicalSystem.getSyslogHosts()); _c.setNtpServers(_masterLogicalSystem.getNtpServers()); _c.setTacacsServers(_masterLogicalSystem.getTacplusServers()); _c.getVendorFamily().setJuniper(_masterLogicalSystem.getJf());
abstractConf.setLoggingSourceInterface(conf.getLoggingSourceInterface()); abstractConf.setNormalVlanRange(conf.getNormalVlanRange()); abstractConf.setNtpServers(conf.getNtpServers()); abstractConf.setNtpSourceInterface(conf.getNtpSourceInterface()); abstractConf.setSnmpSourceInterface(conf.getSnmpSourceInterface());
conf2.setNtpServers(ImmutableSortedSet.of("sa")); Map<String, Configuration> configurations = ImmutableMap.of("node1", conf1, "node2", conf2); Map<String, ColumnMetadata> columns =
c.setNtpSourceInterface(_ntpSourceInterface); if (_cf.getNtp() != null) { c.setNtpServers(new TreeSet<>(_cf.getNtp().getServers().keySet()));