- is_add = 1,
- subnet = dict(
- type = getattr(GBPSubnetType,
- 'GBP_API_SUBNET_L3_OUT').value,
- sw_if_index = sw_if_index,
- sclass = sclass,
- prefix = dict(
- address = IPUtil.create_ip_address_object(
- ip_address(unicode(address))),
- len = int(subnet_length)
+ is_add=1,
+ subnet=dict(
+ type=getattr(GBPSubnetType, u"GBP_API_SUBNET_L3_OUT").value,
+ sw_if_index=sw_if_index,
+ sclass=sclass,
+ prefix=dict(
+ address=IPUtil.create_ip_address_object(
+ ip_address(address)
+ ),
+ len=int(subnet_length)