diff options
author | Chris Koch <chrisko@google.com> | 2019-12-28 00:57:21 -0800 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2020-03-05 15:51:55 +0000 |
commit | c483f8beb41f894c3d9c5adf0781c73ca1fbd7ac (patch) | |
tree | 73f0afcf6f50af83220f4f2d67e7edbc2cb71326 /dhcpv6/modifiers_test.go | |
parent | 8d3e32a40580e3e227f64d9068f84b321e7921b2 (diff) |
v6: add ClientID getter
Signed-off-by: Chris Koch <chrisko@google.com>
Diffstat (limited to 'dhcpv6/modifiers_test.go')
-rw-r--r-- | dhcpv6/modifiers_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dhcpv6/modifiers_test.go b/dhcpv6/modifiers_test.go index ec8ff0b..ff3a87a 100644 --- a/dhcpv6/modifiers_test.go +++ b/dhcpv6/modifiers_test.go @@ -17,10 +17,8 @@ func TestWithClientID(t *testing.T) { } m, err := NewMessage(WithClientID(duid)) require.NoError(t, err) - opt := m.GetOneOption(OptionClientID) - require.NotNil(t, opt) - cid := opt.(*OptClientId) - require.Equal(t, cid.Cid, duid) + cid := m.Options.ClientID() + require.Equal(t, cid, &duid) } func TestWithServerID(t *testing.T) { |