SfcIosXeUtils { public static org.opendaylight.yang.gen.v1.urn.ios.rev160308._native.service.chain.ServiceFunctionForwarder createLocalForwarder( IpAddress ipAddress) { if (ipAddress != null && ipAddress.getIpv4Address() != null) { IpBuilder ipBuilder = new IpBuilder(); ipBuilder.setAddress(new org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address(ipAddress .getIpv4Address().getValue())); LocalBuilder localBuilder = new LocalBuilder(); localBuilder.setIp(ipBuilder.build()); ServiceFunctionForwarderBuilder localForwarderBuilder = new ServiceFunctionForwarderBuilder(); localForwarderBuilder.setLocal(localBuilder.build()); return localForwarderBuilder.build(); } return null; }  static org.opendaylight.yang.gen.v1.urn.ios.rev160308._native.service.chain.ServiceFunctionForwarder createLocalForwarder(
            IpAddress ipAddress); static ServiceFfName createRemoteForwarder(SffName sffName); static SfDataPlaneLocator getDplWithIpLocatorType(List<SfDataPlaneLocator> dataPlaneLocators);  }
@Test public void createLocalForwarder_nullIp() { assertNull(SfcIosXeUtils.createLocalForwarder(null)); }
@Test public void createLocalForwarder() { IpAddress ipAddress = new IpAddress(new Ipv4Address(ipv4Address)); ServiceFunctionForwarder result = SfcIosXeUtils.createLocalForwarder(ipAddress); assertNotNull(result); assertEquals(result.getLocal().getIp().getAddress().getValue(), ipv4Address); }