Signed-off-by: Suchi Raman <suchi.raman@plexxi.com>
}
/* Get the waypoint address */
}
/* Get the waypoint address */
+ @XmlElement(name="waypoint")
public AffinityAttribute getWaypoint() {
return attrlist.get(AffinityAttributeType.SET_PATH_REDIRECT);
}
public AffinityAttribute getWaypoint() {
return attrlist.get(AffinityAttributeType.SET_PATH_REDIRECT);
}
}
/* tbd requires nb method. */
}
/* tbd requires nb method. */
+ @XmlElement(name="tapList")
public List<InetAddress> getTapList() {
// Check if a tap attribute is already available on this link.
SetTap tap = (SetTap) attrlist.get(AffinityAttributeType.SET_TAP);
public List<InetAddress> getTapList() {
// Check if a tap attribute is already available on this link.
SetTap tap = (SetTap) attrlist.get(AffinityAttributeType.SET_TAP);
+ @XmlElement(name="deny")
public boolean isDeny() {
return attrlist.containsKey(AffinityAttributeType.SET_DENY);
}
public boolean isDeny() {
return attrlist.containsKey(AffinityAttributeType.SET_DENY);
}
attrlist.remove(AffinityAttributeType.SET_DENY);
}
attrlist.remove(AffinityAttributeType.SET_DENY);
}
+ @XmlElement(name="isolate")
+ public boolean isIsolate() {
+ return attrlist.containsKey(AffinityAttributeType.SET_PATH_ISOLATE);
+ }
+
// Mark this with "isolate"
public void setIsolate() {
SetPathIsolate iso = new SetPathIsolate();
// Mark this with "isolate"
public void setIsolate() {
SetPathIsolate iso = new SetPathIsolate();
attrlist.remove(AffinityAttributeType.SET_PATH_ISOLATE);
}
attrlist.remove(AffinityAttributeType.SET_PATH_ISOLATE);
}
+ @XmlElement(name="fromGroup")
public AffinityGroup getFromGroup() {
return this.fromGroup;
}
public AffinityGroup getFromGroup() {
return this.fromGroup;
}
+ @XmlElement(name="toGroup")
public AffinityGroup getToGroup() {
return this.toGroup;
}
public AffinityGroup getToGroup() {
return this.toGroup;
}
for key in affyLinkCfg:
print "%10s : %s" % (key, affyLinkCfg[key])
for key in affyLinkCfg:
print "%10s : %s" % (key, affyLinkCfg[key])
def client_ws_example():
# Create two affinity groups
print "create web servers group"
def client_ws_example():
# Create two affinity groups
print "create web servers group"
set_waypoint_address('inflows', '10.0.0.2')
set_tap('inflows', '10.0.0.6')
set_tap('inflows', '10.0.0.4')
set_waypoint_address('inflows', '10.0.0.2')
set_tap('inflows', '10.0.0.6')
set_tap('inflows', '10.0.0.4')
get_affinity_link('inflows')
# Change a few affinity attributes and get the new link configuration.
get_affinity_link('inflows')
# Change a few affinity attributes and get the new link configuration.