Allow configuration of PTP master/slave interfaces

Add the correct default value during interface create. Without this the
ptp_role value will default to None (null) and that will break puppet
generation during host-unlock.

Story: 2006759
Task: 37690
Change-Id: I895201bb847518197df33d9b91c785017198ffca
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
This commit is contained in:
David Sullivan 2019-12-11 18:58:27 -05:00
parent cb02d7b542
commit 67bbef1085
1 changed files with 2 additions and 1 deletions

View File

@ -664,7 +664,8 @@ def _set_defaults(interface):
'txhashpolicy': None,
'vlan_id': None,
'sriov_numvfs': 0,
'sriov_vf_driver': None}
'sriov_vf_driver': None,
'ptp_role': constants.INTERFACE_PTP_ROLE_NONE}
if interface['ifclass'] == constants.INTERFACE_CLASS_DATA:
defaults['ipv4_mode'] = constants.IPV4_DISABLED