@SuppressWarnings("unchecked") ContainerBindingContext(final Class<? extends DataObject> appConfigBindingClass) { super((Class<DataObject>) appConfigBindingClass, InstanceIdentifier.create((Class<DataObject>) appConfigBindingClass), ContainerSchemaNode.class); }
public InstanceIdentifier<Ports> getNeutrounPortsPath() { return InstanceIdentifier .create(Neutron.class) .child(Ports.class); }
@Override public void checkLispEnabledBefore(@Nonnull final WriteContext ctx) { // no need to dump here, can be read directly from context checkState(ctx.readBefore(InstanceIdentifier.create(Lisp.class)) .or(STATIC_LISP_INSTANCE).isEnable(), "Lisp feature not enabled"); }
/** * Method builds OVSDB Topology InstanceIdentifier * <p> * * @return InstanceIdentifier<Topology> */ public static InstanceIdentifier<Topology> buildOvsdbTopologyIID() { InstanceIdentifier<Topology> ovsdbTopologyIID = InstanceIdentifier.create(NetworkTopology.class) .child(Topology.class, new TopologyKey(SouthboundConstants.OVSDB_TOPOLOGY_ID)); return ovsdbTopologyIID; }
public AclContextManagerImpl(@Nonnull final String artificialNamePrefix, @Nonnull final String aclContextName) { this.artificialNamePrefix = requireNonNull(artificialNamePrefix, "artificialNamePrefix should not be null"); requireNonNull(aclContextName, "aclContextName should not be null"); this.ctxIid = InstanceIdentifier.create(Contexts.class) .augmentation(VppAclContextAugmentation.class).child(VppAclMappings.class) .child(VppAclContext.class, new VppAclContextKey(aclContextName)); }
@Nonnull @Override public Initialized<? extends DataObject> init(@Nonnull InstanceIdentifier<MapServer> instanceIdentifier, @Nonnull MapServer mapServer, @Nonnull ReadContext readContext) { final InstanceIdentifier<MapServer> configId = InstanceIdentifier.create(Lisp.class) .child(LispFeatureData.class) .child(MapServers.class) .child(MapServer.class, instanceIdentifier.firstKeyOf(MapServer.class)); return Initialized.create(configId, mapServer); }
/** * Get the cse from the db store using its key ie. the cseName * @param name cse name * @return the cse object */ public Onem2mCse retrieveCseByName(String name) { InstanceIdentifier<Onem2mCse> iid = InstanceIdentifier.create(Onem2mCseList.class) .child(Onem2mCse.class, new Onem2mCseKey(name)); return DbTransaction.retrieve(dataBroker, iid, LogicalDatastoreType.OPERATIONAL); }
@Override protected InstanceIdentifier<Floatingip> createInstanceIdentifier( Floatingip item) { return InstanceIdentifier.create(Neutron.class) .child(Floatingips.class) .child(Floatingip.class,item.getKey()); }
@Override protected InstanceIdentifier<Subnet> createInstanceIdentifier(Subnet subnet) { return InstanceIdentifier.create(Neutron.class).child(Subnets.class) .child(Subnet.class, subnet.getKey()); }
@Override protected InstanceIdentifier<SecurityGroup> createInstanceIdentifier(SecurityGroup securityGroup) { return InstanceIdentifier.create(Neutron.class) .child(SecurityGroups.class).child(SecurityGroup.class, securityGroup.getKey()); }
@Override protected InstanceIdentifier<FlowCapableNodeConnector> getWildCardPath(){ return InstanceIdentifier.create(Nodes.class) .child(Node.class) .child(NodeConnector.class) .augmentation(FlowCapableNodeConnector.class); }
private InstanceIdentifier<Node> getWildCardPath() { return InstanceIdentifier .create(NetworkTopology.class) .child(Topology.class, new TopologyKey(SouthboundUtils.OVSDB_TOPOLOGY_ID)) .child(Node.class); }
@Override protected InstanceIdentifier<Flow> getWildCardPath() { return InstanceIdentifier.create(Nodes.class).child(Node.class) .augmentation(FlowCapableNode.class).child(Table.class).child(Flow.class); }
@Override protected InstanceIdentifier<Flow> getWildCardedRegistrationPath() { return InstanceIdentifier.create(Nodes.class).child(Node.class) .augmentation(FlowCapableNode.class).child(Table.class).child(Flow.class); }
@Override protected InstanceIdentifier<PhysicalSwitchAugmentation> getWildCardPath() { return InstanceIdentifier.create(NetworkTopology.class) .child(Topology.class, new TopologyKey(HwvtepSouthboundConstants.HWVTEP_TOPOLOGY_ID)).child(Node.class) .augmentation(PhysicalSwitchAugmentation.class); }
private static void writeConfiguration(final DataBroker dataBroker, final Topology topology) { final KeyedInstanceIdentifier<Topology, TopologyKey> topologyIId = InstanceIdentifier.create(NetworkTopology.class).child(Topology.class, topology.getKey()); final WriteTransaction wTx = dataBroker.newWriteOnlyTransaction(); wTx.put(LogicalDatastoreType.CONFIGURATION, topologyIId, topology, true); wTx.submit(); }
protected void registerListener() { lstnerRegistration = this.broker.registerDataChangeListener(LogicalDatastoreType.OPERATIONAL, InstanceIdentifier.create(NetworkTopology.class).child(Topology.class, new TopologyKey(HwvtepSouthboundConstants.HWVTEP_TOPOLOGY_ID)).child(Node.class) .child(TerminationPoint.class), this, DataChangeScope.BASE); }
public static InstanceIdentifier<TerminationPoint> createTerminationPointInstanceIdentifier(Node node, String portName){ InstanceIdentifier<TerminationPoint> terminationPointPath = InstanceIdentifier .create(NetworkTopology.class) .child(Topology.class, new TopologyKey(OVSDB_TOPOLOGY_ID)) .child(Node.class,node.getKey()) .child(TerminationPoint.class, new TerminationPointKey(new TpId(portName))); LOG.debug("Termination point InstanceIdentifier generated : {}",terminationPointPath); return terminationPointPath; }
public static InstanceIdentifier<TerminationPoint> createTpPath(TopologyId topoId, NodeId nodeId, TpId tpId) { return InstanceIdentifier.create(NetworkTopology.class) .child(Topology.class, new TopologyKey(topoId)) .child(Node.class, new NodeKey(nodeId)) .child(TerminationPoint.class, new TerminationPointKey(tpId)); }
public static InstanceIdentifier<Node> createNodeIId(String topoId, String nodeId) { return InstanceIdentifier.create(NetworkTopology.class) .child(Topology.class, new TopologyKey(new TopologyId(topoId))) .child(Node.class, new NodeKey(new NodeId(nodeId))); }