@Test public void testSetCapabilities() throws Exception { Capabilities capabilities = Configuration.getCapabilities(Version.Version4); connection.setCapabilities(capabilities); assertFalse(connection.getCapabilitiesRemote().contains(CapabilityType.Ipv4Unicast)); assertFalse(connection.getCapabilitiesRemote().contains(CapabilityType.Ipv6Unicast)); assertFalse(connection.getCapabilitiesRemote().contains(CapabilityType.LoopDetection)); assertFalse(connection.getCapabilitiesRemote().contains(CapabilityType.SubnetBindings)); assertFalse(connection.getCapabilitiesRemote().contains(CapabilityType.SxpCapabilityExchange)); verify(writeTransaction, atLeastOnce()).put(any(LogicalDatastoreType.class), any(InstanceIdentifier.class), eq(capabilities)); }
@Override protected void setCapabilities(Capabilities capabilities) { super.setCapabilities(capabilities); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(Capabilities.class), Preconditions.checkNotNull(capabilities), LogicalDatastoreType.OPERATIONAL, true); } }
SxpDatastoreConnection extends org.opendaylight.sxp.core.SxpConnection { @Override protected void setCapabilities(Capabilities capabilities) { super.setCapabilities(capabilities); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(Capabilities.class), Preconditions.checkNotNull(capabilities), LogicalDatastoreType.OPERATIONAL, true); } } }
SxpDatastoreConnection extends org.opendaylight.sxp.core.SxpConnection { @Override protected void setCapabilities(Capabilities capabilities) { super.setCapabilities(capabilities); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(Capabilities.class), Preconditions.checkNotNull(capabilities), LogicalDatastoreType.OPERATIONAL, true); } } private  SxpDatastoreConnection(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection, String domain); }
SxpDatastoreConnection extends org.opendaylight.sxp.core.SxpConnection { @Override protected void setCapabilities(Capabilities capabilities) { super.setCapabilities(capabilities); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(Capabilities.class), Preconditions.checkNotNull(capabilities), LogicalDatastoreType.OPERATIONAL, true); } } private  SxpDatastoreConnection(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection, String domain); static SxpDatastoreConnection create(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection,
            String domain); @Override void setNodeIdRemote(NodeId remoteNodeId); @Override void setUpdateOrKeepaliveMessageTimestamp(); @Override void shutdown(); }
SxpDatastoreConnection extends org.opendaylight.sxp.core.SxpConnection { @Override protected void setCapabilities(Capabilities capabilities) { super.setCapabilities(capabilities); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(Capabilities.class), Preconditions.checkNotNull(capabilities), LogicalDatastoreType.OPERATIONAL, true); } } private  SxpDatastoreConnection(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection, String domain); static SxpDatastoreConnection create(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection,
            String domain); @Override void setNodeIdRemote(NodeId remoteNodeId); @Override void setUpdateOrKeepaliveMessageTimestamp(); @Override void shutdown();  }