Fix logic in adding prefix to ip-a in classifier 76/7276/3
authorVenkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>
Fri, 1 Mar 2019 20:39:56 +0000 (02:09 +0530)
committerharsha <venkataharshavardhan_ven@srmuniv.edu.in>
Tue, 12 Mar 2019 14:39:09 +0000 (15:39 +0100)
commita1b2e57563f82763eaf940e836e2f8683fa9be81
treec4217b88486f4f6cdf47d823e63b3de2200ac6da
parent40c6a3fd270d6d00f1fc073c2277ff724b4e385a
Fix logic in adding prefix to ip-a in classifier

This commit has following changes:

- When 'source-ip-address' or 'destination-ip-address' are not provided
  under "nsd:nsd-catalog:nsd:vnffgd:classifier:match-attributes" this
  would avoid adding the '/32' prefix in the classifier definition.

- add details to classifier definition only if provided.

This patch helps us in creating classifier with minimum details and
avoid errors when 'source-ip-address' or  'destination-ip-address'
 were not provided in nsd.

Change-Id: I5b572552bd670b56faa0aba5833209d198e10450
Signed-off-by: Venkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>
osm_ro/vim_thread.py