[DM]: Allocate ip from each subnet of VN for lo0 interface
- allocate ip from each subnet of VN (non-external L3 VNs) and configure lo0 interface
- lo0 interface ifl unit number is calculated as 1000 + vn_id
- for now, do not allocate this ip if vn is type external
- persist allocated IPs in DB, and on restart use same allocated ips
- on delete, free up allocated ips
- Cassandra Key indexing format is changed for supporting both irb & lo0
- Upgrade issue is taken care
- Added UT cases
- Fixed ip_alloc recent regression issue (bad parameter was passed to virtual_network_ip_alloc api)
Generated Config:
root@cmbu-tasman# show groups __contrail__ interfaces lo0 | display set
set groups __contrail__ interfaces lo0 unit 0 family inet address 172.16.184.200/32 primary
set groups __contrail__ interfaces lo0 unit 0 family inet address 172.16.184.200/32 preferred
set groups __contrail__ interfaces lo0 unit 1210 family inet address 40.0.0.6/32
Reviewed: https:/ /review. opencontrail. org/25796 github. org/Juniper/ contrail- controller/ commit/ 644dd9b9b5de103 3ab0fe8ed8e32c2 719045a640
Committed: http://
Submitter: Zuul
Branch: master
commit 644dd9b9b5de103 3ab0fe8ed8e32c2 719045a640
Author: sbalineni <email address hidden>
Date: Mon Nov 7 16:32:01 2016 -0800
[DM]: Allocate ip from each subnet of VN for lo0 interface
- allocate ip from each subnet of VN (non-external L3 VNs) and configure lo0 interface network_ ip_alloc api)
- lo0 interface ifl unit number is calculated as 1000 + vn_id
- for now, do not allocate this ip if vn is type external
- persist allocated IPs in DB, and on restart use same allocated ips
- on delete, free up allocated ips
- Cassandra Key indexing format is changed for supporting both irb & lo0
- Upgrade issue is taken care
- Added UT cases
- Fixed ip_alloc recent regression issue (bad parameter was passed to virtual_
Generated Config:
root@cmbu-tasman# show groups __contrail__ interfaces lo0 | display set
set groups __contrail__ interfaces lo0 unit 0 family inet address 172.16.184.200/32 primary
set groups __contrail__ interfaces lo0 unit 0 family inet address 172.16.184.200/32 preferred
set groups __contrail__ interfaces lo0 unit 1210 family inet address 40.0.0.6/32
[edit] xml.juniper. net/junos/ 14.2R6/ junos"> seconds= "1471546906" junos:changed- localtime= "2016-08- 18 12:01:46 PDT"> _contrail_ _</name> 16.184. 200/32< /name> 0.0.6/32< /name> [edit]< /banner>
root@cmbu-tasman# show groups __contrail__ interfaces lo0 | display xml
<rpc-reply xmlns:junos="http://
<configuration junos:changed-
<groups>
<name>_
<interfaces>
<interface>
<name>lo0</name>
<unit>
<name>0</name>
<family>
<inet>
<address>
<name>172.
<primary/>
<preferred/>
</address>
</inet>
</family>
</unit>
<unit>
<name>1210</name>
<family>
<inet>
<address>
<name>40.
</address>
</inet>
</family>
</unit>
</interface>
</interfaces>
</groups>
</configuration>
<cli>
<banner>
</cli>
</rpc-reply>
Change-Id: I2104b0f5a2f72c 824e1e14e464271 b7bb44106f5
Closes-Bug: #1491506