我正在尝试使用Titan Graph DB建立网络拓扑模型。我想从python应用程序指定拓扑。在
我有一个使用tinkertop frames
注释的java接口文件。下面给出了一个结构示例。在
public interface IDeviceObject extends IBaseObject {
@JsonProperty("mac")
@Property("dl_addr")
public String getMACAddress();
@Property("dl_addr")
public void setMACAddress(String macaddr);
@JsonProperty("ipv4")
@Property("nw_addr")
public String getIPAddress();
@Property("nw_addr")
public void setIPAddress(String ipaddr);
@JsonIgnore
@Adjacency(label="host",direction = Direction.IN)
public Iterable<IPortObject> getAttachedPorts();
@JsonIgnore
@Adjacency(label="host",direction=Direction.IN)
public void setHostPort(final IPortObject port);
@JsonIgnore
@Adjacency(label="host",direction=Direction.IN)
public void removeHostPort(final IPortObject port);
@JsonIgnore
@GremlinGroovy("it.in('host').in('on')")
public Iterable<ISwitchObject> getSwitch();
}
据我所知,tinkertop/frames是Titan DB的ORM。(我的假设是对的吗?)在
是否有类似的东西,即用于Titan DB的Python对象关系映射器?我正在寻找从Python映射拓扑的最简单方法
目前没有回答
相关问题 更多 >
编程相关推荐