+ " \"name\": \"vpn1\", \"admin_state_up\": true, "
+ " \"tenant_id\": \"9bacb3c5d39d41a79512987f338cf177\", " + " \"route_targets\": \"64512:1\", "
+ " \"networks\": \"3b80198d-4f7b-4f77-9ef5-774d54e17126\", "
+ + " \"vni\": 100, "
+ " \"auto_aggregate\": true, \"id\": \"4e8e5957-649f-477b-9e5b-f1f75b21c03c\" " + " } }";
HttpUtils.test_create(url, content, "Singleton Bgpvpn Post Failed NB");
return content;
String content = "{ \"bgpvpns\": [ { " + "\"status\": \"ACTIVE\", " + "\"name\": \"sample_bgpvpn1\", "
+ "\"admin_state_up\": true, " + "\"tenant_id\": \"4fd44f30292945e481c7b8a0c8908869\", "
+ "\"id\": \"bc1a76cb-8767-4c3a-bb95-018b822f2130\", " + "\"route_targets\": \"64512:1\", "
- + "\"auto_aggregate\": true, " + "\"type\": \"l3\" }, { " + "\"status\": \"ACTIVE\", "
+ + " \"vni\": 100, " + "\"auto_aggregate\": true, " + "\"type\": \"l3\" }, { "
+ + "\"status\": \"ACTIVE\", "
+ "\"name\": \"sample_bgpvpn2\", " + "\"admin_state_up\": true, "
+ "\"tenant_id\": \"4fd44f30292945e481c7b8a0c8908869\", "
+ "\"id\": \"af374017-c9ae-4a1d-b799-ab73111476e2\", " + "\"route_targets\": \"64512:2\", "
- + "\"auto_aggregate\": false, " + "\"type\": \"l3\" } ] } ";
+ + " \"vni\": 100, " + "\"auto_aggregate\": false, " + "\"type\": \"l3\" } ] } ";
HttpUtils.test_create(url, content, "Bulk Bgpvpn Post Failed");
}
type string;
description "list route-distinguishers";
}
- leaf vnid {
+ leaf vni {
type uint32;
description "globally assigned VxLanId";
}
@XmlElement(name = "route_distinguishers")
List<String> routeDistinguishers;
- @XmlElement(name = "vnid")
- Long vnid;
+ @XmlElement(name = "vni")
+ Long vni;
@XmlElement(defaultValue = "false", name = "auto_aggregate")
Boolean autoAggregate;
routeDistinguishers.remove(uuid);
}
- public Long getVnid() {
- return vnid;
+ public Long getVni() {
+ return vni;
}
- public void setVnid(Long input) {
- vnid = input;
+ public void setVni(Long input) {
+ vni = input;
}
public Boolean getAutoAggregate() {
case "networks":
ans.setNetworks(this.getNetworks());
break;
- case "vnid":
- ans.setVnid(this.getVnid());
+ case "vni":
+ ans.setVni(this.getVni());
break;
case "auto_aggregate":
ans.setAutoAggregate(this.getAutoAggregate());
return "NeutronBgpvpn [bgpvpnUUID=" + uuid + ", bgpvpnName=" + name + ", adminStateUp=" + adminStateUp
+ ", status=" + status + ", tenantID=" + getTenantID() + ", type=" + type + ", technique=" + technique
+ ", routeTargets=" + routeTargets + ", importTargets=" + importTargets + ", exportTargets="
- + exportTargets + ", routeDistinguishers=" + routeDistinguishers + ", vnid = " + vnid
+ + exportTargets + ", routeDistinguishers=" + routeDistinguishers + ", vni = " + vni
+ ", autoAggregate = " + autoAggregate + ", networks = " + networks + ", routers = " + routers + "]";
}
}
final NeutronBgpvpn result = new NeutronBgpvpn();
fromMdAdminAttributes(bgpvpn, result);
result.setAutoAggregate(bgpvpn.isAutoAggregate());
- if (bgpvpn.getVnid() != null) {
- result.setVnid(bgpvpn.getVnid());
+ if (bgpvpn.getVni() != null) {
+ result.setVni(bgpvpn.getVni());
}
if (bgpvpn.getType() != null) {
result.setType(BGPVPN_TYPE_MAP.get(bgpvpn.getType()));
if (bgpvpn.getAutoAggregate() != null) {
bgpvpnBuilder.setAutoAggregate(bgpvpn.getAutoAggregate());
}
- if (bgpvpn.getVnid() != null) {
- bgpvpnBuilder.setVnid(bgpvpn.getVnid());
+ if (bgpvpn.getVni() != null) {
+ bgpvpnBuilder.setVni(bgpvpn.getVni());
}
if (bgpvpn.getType() != null) {
final ImmutableBiMap<String, Class<? extends BgpvpnTypeBase>> mapper = BGPVPN_TYPE_MAP.inverse();