Re some comments ALTO code
chenguohai
Hi folks, I am suspecting there are some constraints on AddressGroup which could most include one IPV4 and(or) one IPV6. The processing code in RFC2ModelEndpointAddressGroupCoventer.java seems only could cope with most one IPV4 and(or) one IPV6.
@Override protected Object _convert() { List<ModelEndpointAddressGroup> out = new LinkedList<ModelEndpointAddressGroup>(); if ((in().ipv4 != null) && (!in().ipv4.isEmpty())) { ModelEndpointAddressGroup v4 = new ModelEndpointAddressGroup(); v4.setJSONAddressType(ModelEndpointAddressGroup.IPV4); v4.setJSONEndpointPrefix(in().ipv4); out.add(v4); } if ((in().ipv6 != null) && (!in().ipv6.isEmpty())) { ModelEndpointAddressGroup v6 = new ModelEndpointAddressGroup(); v6.setJSONAddressType(ModelEndpointAddressGroup.IPV6); v6.setJSONEndpointPrefix(in().ipv6); out.add(v6); } return out; } It is reseanable that one EP has multiple IPV4 addresses or multiple IPV6 addresses.
Did I misunderstand something .
BR Robert ------------------------------------------------------------------------------------------------------------------------------------- Chen Guohai (Robert), 陈国海. Network Research Department, Huawei Technologies Co., Ltd. Telephone: 0086-25-56624606; 华为技术有限公司 ,地址:深圳市龙岗区坂田华为基地 邮编:518129 http://www.huawei.com ------------------------------------------------------------------------------------------------------------------------------------- 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! ----------------------------------------------------------------------------------------------------------------------------------------
发件人: Chenguohai
Hi Kai,
Good proposal. I’ll try to find who is responsible for that. There is another project(https://wiki.opendaylight.org/view/YANG_Tools:Main), may be the committers know the clue.
BR Robert 发件人: Gao Kai
[mailto:godrickk@...]
Mr. Chen,
On 04/05/15 17:20, Chenguohai wrote:
|
|
Gao Kai
Mr. Chen,
toggle quoted messageShow quoted text
in().ipv4 is a list, so is in().ipv6. On 07/05/15 08:31, Chenguohai wrote:
|
|
chenguohai
Hi all, I have reported and yangtools shall take over that. @Kai, you gave me much help, thank you. Link is here: https://bugs.opendaylight.org/show_bug.cgi?id=3147
BR Robert ------------------------------------------------------------------------------------------------------------------------------------- Chen Guohai (Robert), 陈国海. Network Research Department, Huawei Technologies Co., Ltd. Telephone: 0086-25-56624606; 华为技术有限公司 ,地址:深圳市龙岗区坂田华为基地 邮编:518129 http://www.huawei.com ------------------------------------------------------------------------------------------------------------------------------------- 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! ----------------------------------------------------------------------------------------------------------------------------------------
|
|
Gao Kai
Mr. Chen,
toggle quoted messageShow quoted text
Thank you for your participation. I'm very glad that I can help. Yours, Kai On 08/05/15 11:00, Chenguohai wrote:
|
|