Brian

SDNC controller is using a script to boostrap, as shown here: 
https://github.com/onap/oom/blob/amsterdam/kubernetes/sdnc/templates/sdnc-deployment.yaml#L45
 
<https://github.com/onap/oom/blob/amsterdam/kubernetes/sdnc/templates/sdnc-deployment.yaml#L45>

What I suggest is to customize this script to deploy the route if an 
environment parameter is set.
Could be something like: 

- name:vCPE_use_case_enable
value: true

If you don’t want to modify this script, then I suggest you create a new 
script, that will call the /opt/onap/sdnc/bin/startODL.sh script and add your 
route. If you do this, you will have to load your script in a config-map 
(similarly as done here: https://gerrit.onap.org/r/#/c/30603/ 
<https://gerrit.onap.org/r/#/c/30603/>)  in the SDNC namespace, you will have 
to add this config-map as volume in the SDNC deployment, and you will have to 
change the start command to run your added script.

Alexis


> On Feb 9, 2018, at 5:35 PM, FREEMAN, BRIAN D <bf1...@att.com> wrote:
> 
>  
> For the vCPE Use Case we add a static route from the SDNC controller to the 
> vBNG  so that we can to the vBRG to create the tunnels to the vGMUX.
>  
> The command we use on regular docker seems to fail on the K8 based image.
>  ip route add 10.3.0.0/24 via 10.0.101.10 dev eth0
> RTNETLINK answers: Operation not permitted
>  
> Other ip config data below.
>  
> Do we need to add this static route from the K8 side ?
>  
> Brian
>  
> root@sdnc-1507781456-qpp77:/# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:f2:9c:4e:8e:03
>           inet addr:10.42.105.196  Bcast:0.0.0.0  Mask:255.255.0.0
>           inet6 addr: fe80::c461:2eff:fe28:5ab8/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1402  Metric:1
>           RX packets:452850 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:374275 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:72235413 (72.2 MB)  TX bytes:53479210 (53.4 MB)
>  
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:65536  Metric:1
>           RX packets:10453 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:10453 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:1155768 (1.1 MB)  TX bytes:1155768 (1.1 MB)
>  
>  
>  
>  
> root@sdnc-1507781456-qpp77:/# ip route
> default via 10.42.0.1 dev eth0
> 10.42.0.0/16 dev eth0  proto kernel  scope link  src 10.42.105.196
> 169.254.169.250 via 10.42.0.1 dev eth0
> _______________________________________________
> onap-discuss mailing list
> onap-discuss@lists.onap.org
> https://lists.onap.org/mailman/listinfo/onap-discuss

_______________________________________________
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to